ios - MPMoviePlayerViewController locks up application with unusual appearance? -


so, i've tried number of ways same result.

i've tested using youtube mp4 url, such as: this

the way looks pretty like:

self.movieplayer = [[mpmovieplayerviewcontroller alloc] initwithcontenturl:[nsurl urlwithstring:videourlstring]]; 

and play video. if play video , goes fullscreen, whole app locks up. video player appears, parts of status bar (such time , bars) disappear leaving carrier name. volume slider half there, , loads indefinitely, , ignores further touch input until kill app. if rotate iphone, volume slider , rest of status bar reappear, still not respond touch or finish loading. screenshot of issue.

if, instead, pass mpmovieplayerviewcontroller object uinavigationcontroller presentviewcontroller:, app seems hang: until rotate, video appears correctly , starts playing! however, again, touch input ignored , application locked.

this 1 of strangest issues i've troubleshot.

so tried using tools others have built. tried xcdyoutubekit , ykmediakit using youtube id instead of direct link, exact same result. after looking @ code, both use mpmovieplayerviewcontrollers.

what's happening here? can me figure out what's wrong?

that's surprising. have tried playing around av foundation? it's more modern media api mediaplayer.framework.

if can target ios 8 only, avplayerviewcontroller simple way playback media via avplayer.


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -