I’m using Unreal MediaPlayer in my project under Windows 10.
The file URL for my MediaPlayer is ./Movies/Test.mp4
with codec:
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 2048x1024 [SAR 1:1 DAR 2:1], 5915 kb/s, 59.94 fps, 59.94 tbr, 60k tbn (default)
- I put the object with video material in a level.
- In the event BeginPlay, rewind and then play the video.
- In the event EndPlay, pause the video.
The results are:
- When I preview in the Unreal Editor, it always works.
- When I packed the game for shipping (using or not using pak files). Sometimes it works for first 1~2 time when I enter the level. Other conditions (leave and enter for more than 1~2 times or sometimes even the first time enter the level), It only show black texture.