You can create a presentation that contains media objects that are displayed sequentially to the viewer instead of in parallel. To do that, you use the WOSMILSeq element.
This section shows you how to create a presentation with two
video elements that are presented sequentially. The component contains
a WORepetition element that uses the keys movies and movieName to
lay out the video elements of the presentation.
Movies.370 for
the height binding.480 for the width binding. "meet" for
the fit binding.370 for the height binding.0 for the left binding."Region1" for
the regionID binding.0 for the top binding.480 for the width binding."Movie
sequence" for its title attribute.movies key
to the component as an array of Strings (no accessor methods are required).movies in
the Name text field.java.lang.String)"
is selected in the pop-up menu.
movieName key
as a String. Like movies,
no accessor methods are needed.list to movies and item to movieName.
movieName for
the filename binding."app" for
the framework binding."video" for
the mediaObjectName binding."Region1" for
the regionID binding.Movies.java so
that it looks like the following.
public Movies(WOContext context) {
super(context);
NSMutableArray availableMovies = new NSMutableArray();
availableMovies.addObject("ipod_60_480.mov");
availableMovies.addObject("ipod_intro_m240.mov");
movies = new NSArray(availableMovies);
}Build and run the application, and connect to it using the appropriate URL, which should look like
http://<host>:<port>/cgi-bin/WebObjects/Smile.woa/wo/Movies.wo
After clicking Play, you should see the movies in sequence in QuickTime Player.