objective c - Videos are there in array how to play the that videos. iphone -


The video is in the array. I want to play that video

means server in server and video comes in an array. I store the Array dictionary on how to play a video

The code below from the dictionary is correct or false, if incorrect, please tell me the correct one

  here Enter code NSMutableDictionary * dict; Dict = [videoreal fact-on-endx: 0]; NS URL * Movie = [[NSRL Alok] Initvithstring: [Doc ValueForqi: @ "URL"]]; MPMoviePlayerController * theMovie = [[MP3 MPV Player Controller Alok] initWithContentURL: Movie]; TheMovie.scalingMode = MPVsklingModeSpeechFile; [Movie play]; MPMoviePlayerController * Movie = [[MP3 MPV Player Controller] With With Content Content URL: Film]; Movie.view.frame = CGRectMake (5,5,310, 165); Movie.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleBottomMargin; [Scrolled swoueview: movie.]]; [Movie play];    

This is a very hard code to run an array of video continuously:

  - (zero) viewDidoadload {[auto-setupplayer]; } - (Zero) Setup Player {if (i and lt; = [video counting]) {player = [[MP MPV player controller allocon] INST WITH CONTENT URL: [VIDEOARIE ObjectExtends: I]] ;; I ++; // Use a constant outside of these functions as an index [the default center of the NSNation Center] Observer: Self Selector: @Sillector (film finishes callback :) Name: MPMVplayerplaybackDefinition object: player]; [Player's game]; }} - (zero) Movie Fixed Callback: (NSNotification *) A notification {player = [an information object]; [[NSNotificationCenter defaultCenter] Deletion Observer: Own Name: MPMVplayerplaybackDefinition Object: Player]; [Self setupplayer]; }    

Comments