Ipad MPMovieplayerController video loads but automatically pauses when played

后端 未结 5 1218
礼貌的吻别
礼貌的吻别 2020-12-31 14:38

I am trying to get the MPMovieplayerController to work. I load a video everything goes wel i even see the first frame but then it automatically pauses, if i press play it pa

5条回答
  •  温柔的废话
    2020-12-31 15:37

    Avaudioplayer was causing my problem. Apperently on the iPad Avaudioplayer and Mpmovieplayercontroller cannot both play at the same time.

    If an Avaudioplayer object is open the Mpmovieplayer will only display a frame and immediately stop playing.

    As far as I can tell this only happens with iPad device 3.2.1 and SDK 4.0.1; simulators and the iPhone work fine

    I switched back to Audioservices since I need Audioplayer and Movieplayer to play at the same time.

提交回复
热议问题