开发者

iphone using MPMoviePlayerController in 2 views

开发者 https://www.devze.com 2022-12-26 19:01 出处:网络
I\'m creating a navigation controller based application. In first view, there\'s a button. When clicked app will play a movie for 10 seconds.

I'm creating a navigation controller based application. In first view, there's a button. When clicked app will play a movie for 10 seconds. In next view, there's another button. When clicked it will also play a movie. I'm using two different objects of MPMoviePlayerController in two vie开发者_StackOverflow中文版ws. But my problem is that the movie is playing in first view and not in second view. The code that I used to play is same in both the views.

What might be the problem?


Are your videos different? Are they both supported formats? MPMoviePlayerController is very picky over what formats it will play (.mov, .mp4, .mpv, and .3gp) and how they're encoded. Try playing the same video file in both views.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号