MPMoviePlayerController will not play movies on iPhone 3G in release mode, but will work in debug mode

Ok, I have a strange here ... I have a problem with MPMoviePlayerController and playing the m4v movie on an old iphone 3g.

When I connect the device to my mac and run it through Xcode with the assembly installed on Device | Debug - the movie plays perfectly .

When I change the assembly to Device | Release, MPMoviePlayerPlaybackDidFinishNotification is called immediately with the error "This video format is not supported", and the movie is not displayed.

Run 4.1 on the device and install 4.1 as the base SDK.

Do you have any ideas?

Thank you, Chris

+3
source share
1 answer

Perhaps the problem is with your video encoding. Try an example video in this tutorial:

http://mobiledevelopertips.com/video/getting-mpmovieplayercontroller-to-cooperate-with-ios4-3-2-ipad-and-earlier-versions-of-iphone-sdk.html

If the problem still occurs, let me know.

0
source

Source: https://habr.com/ru/post/1775065/


All Articles