As explained earlier, there are sometimes some subtle differences between various movie players.
- Using another player is very easy
-
Just tell the movie factory which player you want to use.
The only major difference is that some players are designed for a certain size photo, so you don't always have to specifiy the photo dimensions to the movie factory.
If you forget to remove the dimensions for players that don't need them when you call the movie factory, everything will still work, the redundant dimensions will simply be ignored.
mov = jpgMovieFactory( 'jpgmovie', 'jpgMovieFlexibleSliderPlayer', 400, 300 );
OR
mov = jpgMovieFactory( 'jpgmovie', 'jpgMovieCircular400x300Player' );
OR
mov = jpgMovieFactory( 'jpgmovie', 'jpgMovieNarrow267x200Player' );
and... the following just ignores the photo dimensions...
mov = jpgMovieFactory( 'jpgmovie', 'jpgMovieNarrow267x200Player', 400, 300 );
- If you're using a player that starts off with AutoPlay ON or Looping ON and you want to turn it off.
-
We earlier used setAutoPlayOn() and setLoopingOn() to turn on those features, but if you're using a jpgMovie player that comes with those features turn on by default and you want to turn them off, we have functionality for that too.
You can use setAutoPlayOff() and/or setLoopingOff() in just the same way as you earlier turned them on.
function loadJpgMovie() {
mov = jpgMovieFactory( 'jpgmovie', 'jpgMovieFlexiblePlayer', 400, 300 );
mov.setImageUrlBase( "http://www.jpgmovie.com/images/test/kayak_slideshow_demo/" );
mov.setInitialImage( "01.jpg" );
mov.setAutoPlayOff();
mov.setLoopingOff();
mov.draw();
mov.addFrame( "01.jpg" );
mov.addFrame( "02.jpg" );
mov.addFrame( "03.jpg" );
mov.addFrame( "07.jpg" );
mov.addFrame( "06.jpg" );
mov.addFrame( "04.jpg" );
mov.addFrame( "05.jpg" );
}
There's also an available technique for programmers who need to set the features based on variables:
function loadJpgMovie() {
mov = jpgMovieFactory( 'jpgmovie', 'jpgMovieFlexiblePlayer', 400, 300 );
mov.setImageUrlBase( "http://www.jpgmovie.com/images/test/kayak_slideshow_demo/" );
mov.setInitialImage( "01.jpg" );
mov.setAutoPlay( boolean_for_auto_play );
mov.setLooping( boolean_for_looping );
mov.draw();
mov.addFrame( "01.jpg" );
mov.addFrame( "02.jpg" );
mov.addFrame( "03.jpg" );
mov.addFrame( "07.jpg" );
mov.addFrame( "06.jpg" );
mov.addFrame( "04.jpg" );
mov.addFrame( "05.jpg" );
}
- The thumbnail player doesn't have play buttons
-
The thumbnail player is unlike most of the other players in that it doesn't have any buttons the person viewing the movie can control the movie with.
With the thumbnail player, the person viewing the photos controls the photos by cliking on a miniature version of the photo they want to look at next.
The thumbnail player will (by default) use thumbnails that are 1/4 the size of your photos.
You can overide this using setThumbnailWidth() and setThumbnailHeight()
function loadJpgMovie() {
mov = jpgMovieFactory( 'jpgmovie', 'jpgMovieThumbnailPlayer', 400, 300 );
mov.setImageUrlBase( "http://www.jpgmovie.com/images/test/kayak_slideshow_demo/" );
mov.setInitialImage( "01.jpg" );
mov.setThumbnailWidth( 80 );
mov.setThumbnailHeight( 60 );
mov.draw();
mov.addFrame( "01.jpg" );
mov.addFrame( "02.jpg" );
mov.addFrame( "03.jpg" );
mov.addFrame( "07.jpg" );
mov.addFrame( "06.jpg" );
mov.addFrame( "04.jpg" );
mov.addFrame( "05.jpg" );
}
- The slideshow player merges photos rather than just replacing them
-
By default the slideshow player waits 5 seconds between frames.
You can set that interval to be anything you want.
So long as the interval rate remains 3 seconds or more the slideshow player will fade-out the previous photo and fade-in the replacement photo.
This fading takes almost a full second but provides a softer image update more appropriate for a slideshow.