In either HTML5 or originally written in Objective-c, I need to create a grid of video thumbnails that automatically play when the page or presentation is loaded onto the iPad . I read several forums and StackOverflow. Some people point out that this is possible with AVController. Others, including the state of Apple
"Note: Although you can create multiple MPMoviePlayerController objects and present your views in your interface, only one movie player can play its movie.
Link: MPMoviePlayerController
In HTML5, it runs on a Macbook, which plays all 9 videos:
<video class="movie" src="videos/aerials.m4v" autoplay controls width="200" height="110"></video>
Paste this 9x with the correct links, and a good video grid starts playing without any problems. However, on an iPad, HTML5, loaded into web browsing, gives the same 9 grid, but without playing the video right away. Only 1 video is played at a time.
Now I took the objective-c path and tried it with a different approach to validating Apple's previous instruction:
moviePlayer1 = [[MPMoviePlayerController alloc]
initWithContentURL:videoURL];
moviePlayer1.view.frame = CGRectMake(0, 0, 200, 110);
[self.view addSubview:moviePlayer1.view];
[[NSNotificationCenter defaultCenter]addObserver:self
selector:@selector(movieFinishedCallback:)
name:MPMoviePlayerPlaybackDidFinishNotification
object:moviePlayer1];
[moviePlayer1 play];
moviePlayer2 = [[MPMoviePlayerController alloc]
initWithContentURL:videoURL];
moviePlayer2.view.frame = CGRectMake(0, 300, 200, 110);
[self.view addSubview:moviePlayer2.view];
[[NSNotificationCenter defaultCenter]addObserver:self
selector:@selector(movieFinishedCallback:)
name:MPMoviePlayerPlaybackDidFinishNotification
object:moviePlayer2];
[moviePlayer2 play];
This really shows both video files in the view, but again the same problem as in HTML5, and only 1 video at a time.
, , Apple iPad, - . ? , , , , . !