Hey there,
I’m having some issue to play a video on an iPhone 6 (u2019.3.5f1)
I’m using that method : Unity - Scripting API: Application.streamingAssetsPath
The video is a mp4 video file, provided using StreamingAssets datapath to the url property of the VideoPlayer.
Video: MPEG4 Video (H264) 1280x720 25fps 1851kbps [V: h264 main L3.1, yuv420p, 1280x720, 1851 kb/s]
Audio: AAC 48000Hz stereo 2kbps [A: Stereo [eng] (aac lc, 48000 Hz, stereo, 2 kb/s)]
The video plays (time is progressing, isPrepared is true, length is coherent, callbacks are called) but it’s a black square on the screen.
It works fine in the editor. It shows a black screen only on the device.
Any insight ?
Thanks for the help !
EDIT
Documentation suggests that ios need to use SDK 11+ for H265 support. I tried to change is and rebuild and it works. But then how do you support older devices ?
( Note that my video file is H264, it was just a test )