在使用系统播放器MPMoviePlayerController的过程中,会出现播放器自动暂停的情况,有两种解决办法:
(1)在播放开始的时候,设置useApplicationAudioSession = NO;
(2) 重启手机,也可以恢复
参考网址:
http://stackoverflow.com/questions/3000969/ipad-mpmovieplayercontroller-video-loads-but-automatically-pauses-when-played
http://stackoverflow.com/questions/5237235/mediaplayer-wont-play-video/5238410#5238410
http://stackoverflow.com/questions/25840423/ios-movie-player-unknown-load-state-after-playing-a-video-once-mpmovieplayercont
http://stackoverflow.com/questions/12041260/an-avplayeritem-cannot-be-associated-with-more-than-one-instance-of-avplayer
时间: 2024-10-05 23:25:42