uitableview - Playing Video URL from Table View Selection -
I chose a video to play me, when specific items table scene Akskod using mediaplayer frameworks. I have put my code on the date below but it is uncertain from where to move from here. Especially I am unsure how to add list view items to URLs
// ViewController.m // test // #import "ViewController.h" @ synthesis table data for implementation view controller; - (void) {Drishydidlod Talikadeta = [[Ansaararael] Initvithobjekt: @ "bacon", @ "banana", @ "Big", @ "Biliys" zero]; [Super viewedload]; } #pragma mark - TableView data source methods - (NSInteger) Talikadrishy: (UITableView *} - (UITableViewCell *) Talikadrishy: (UITableView *) Table View Selforaatindpath: (NSIndexPath *) Suckankpth {UITableViewCell * cell = nil; cell = [Teblwu DeKewor Re-Eligible CellWithIdentifier: @ "MyCell"]; if (cell == blue) {cell = [[UTitleview alloc] initWithStyle: UITableViewCellStyleDefault reuseIdentifier: @ "MyCell"];} Cell.textLabel.text = [tableData objectAtIndex: indexPath .row]; return cell;} #pragma mark - TableView representative model - Talikadrishy (zero): (UITableView * MPMoviePlayerController * theMovie = [[MP Mpivip Screen Capture URL: [NSWR URL with string: moviepath]]; [self current movie]. [NSWR URLWithString: MoviePath]]; [Movie Play]; MPMoviePlayerViewController * Movie Player = [[MP3 MPV Player Wii Controller Alok] Init With Content URL: [ Player Drishykantrolranimit: movie Player];} - (void) has received a Memoriarning {[super Ddraeswimamomi warning]; // Any resource settlement which can be reproduced. } @end
The objectAtIndex: indexPath.row doesn 'T' is urlString , because your array tabledata does not have any url for the specific element try to get url and then Use it in filmpath. NSURL * url = [NSURL URLWithString: @ "http://www.xyz.com / video / x109z02"]; TheMoviPlayer = [[MP3 MPV Player Controller Alok] Init With Content URL: URL]; TheMoviPlayer.scalingMode = MPVScachingModelFilm; TheMoviPlayer.view.frame = CGRectMake (0, 60, 320, 350); [Self.view addSubview: theMoviePlayer.view]; [Self. Mogieplayer play]; Add a framework and then you import it into the header file.
Comments
Post a Comment