objective c - App crash in ios due to MPMoviePlayerViewController -


this question has answer here:

my code

in video player app plays online streaming videos.so used

xcdyoutubekit 

this plays video reference of mpmovieplayerviewcontroller. when first video playing , clicked on other gives me error , crash app.

at line number 1094 got following error.

movie player mpmovieplayercontrollernew: 0x13f0a1f10 has wrong activation state (1)

this happens when have more 1 mpmovieplayercontroller instantiated. can play 1 video mpmovieplayercontroller @ once.

from apple's doc,

note

although can create multiple mpmovieplayercontroller objects , present views in interface, 1 movie player @ time can play movie.

source : mpmovieplayercontroller class reference


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -