OK , so I wanted to run a h.264 mp4 sample video res (1920x1080) on android (Samsung galaxy s4) , it works fine on pc , but when running it on my device it shows a black screen and I can hear the video sound and after the video ends the app closes ?? so Iam going to show you the steps I made to make the project hoping that whoever read this can figure out my mistake and help me.
The steps I did:-
I created a new blank project with no starter contents and scalable for 2d and for mobile phones.
I created a new empty level and then I created new folder inside the content and named it movies and put my video in it.
I create a media source and browse my sample mp4 videos that is inside the Movies folder.
After that I right click on the texture and create the material and since iam using it on an empty level I set the shading model to unlit and in the mobile section I unchecked light map and checked the full precision and connected the texture to the emissive color.
After that I created a widget and put an image in it and replaced the brush with the video material and then did the widget graph and the level blueprint graph to get every thing ready and then tested it on the pc and it worked fine.
Finally I tried to run it on android and the project ran successfully but as I said only sound and black screen and after the video finishes the app closes.
MP4 is old and limited technology to achieve high quality and seamless playback. HISPlayer media player enables next level of video streaming with HLS and DASH streams in Android, Oculus Quest / Quest 2 devices.
Bro make up your mind it will tell you when you want to select mp4 file directory that you cant pckcke it because you should make an folder in (Content) name it (Movies) then but the mp4 videos in it