screenglow screenglow - 17 days ago 7
iOS Question

Easy Movie Texture plays in Unity editor but not on device. What am I missing?

We're using the Easy Movie Texture asset from the asset store and we are trying to play embedded mp4 files on an iPhone 7 device. It works fine with streaming URLs but once I tried to actually Load() an mp4 file it response very unhelpfully:

[prepareAsset]Error: Item cannot be played
Unknown error 0
MediaPlayerCtrl:OnError(MEDIAPLAYER_ERROR, MEDIAPLAYER_ERROR)

Is there any special gotchas anyone has seen with the difference between playing in editor and on an iOS device?

Answer

The issue ended up being the bitrate. Once we encoded the videos with Adobe instead of ffmpeg, it the videos seemed to work fine.