ipad - Cocoa touch SDK 3.2 - How to play video -


possible duplicate:
using mpmovieplayerviewcontroller in sdk 3.2 ipad

how play video on sdk 3.2 (ipad)?

read many questions here talked iphone.
example, movieplayer example here http://developer.apple.com/iphone/library/samplecode/movieplayer_iphone/introduction/intro.html

that works on 3.1.3 when run on 3.2, doesn't work.

so i'm able play video on 3.1.3 using code same code won't run on 3.2

nsstring *moviepath = [[[nsbundle mainbundle] resourcepath] stringbyappendingpathcomponent:@"movie.mp4"];

mpmovieplayercontroller *movieplayer = [[mpmovieplayercontroller alloc] initwithcontenturl:[nsurl fileurlwithpath:moviepath]];  movieplayer.moviecontrolmode = mpmoviecontrolmodedefault;  [[nsnotificationcenter defaultcenter] addobserver:self selector:@selector(moviefinishedcallback:) name:mpmovieplayerplaybackdidfinishnotification object:movieplayer];  [movieplayer play]; 

thanks,
tee

mpmovieplayercontroller doesn't work on ipad anymore - audio played. have use mpmovieplayerviewcontroller correct functionality

using mpmovieplayerviewcontroller in sdk 3.2 ipad

thanks update apple :(


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -