Seeking some help - how can I embed an mp4 video into a Firemonkey app? I have included one in the project file and thought that would be sufficient but when I set the filename in a TMediaPlayer control and call the Play method I get 'file not found' ... Thanks !!

Comments

  1. That depends on your platform. Windows can embed and extract resources in your EXE. On other platforms that is either hard or impossible. I'd just deploy the mp4 with your app. `TPath` has some really nice methods to get you directories (Home, Documents, etc) in a platform neutral way, and to combine directories and filenames to form a full path name. http://docwiki.embarcadero.com/Libraries/en/System.IOUtils.TPath

    ReplyDelete
  2. Thanks Jeroen - managed to get it going, phew! Under Project/Deployment I add the MP4 file, then set the MediaPlayer filename property using TPath.

    ReplyDelete

Post a Comment