JSignage:PlaylistTutorial5
From SpinetiX Support Wiki
Description
Playlist with shuffle
- The $.shuffle function is called to shuffle the list of files.
Source code
var list = [];
for ( var i=1; i<18; i++ )
list.push( 'media/Monet_4_3/' + i + '.jpg' );
$.playlist({
left: 240,
top: 60,
width: 800,
height: 600,
data: $.shuffle( list ),
defaultDur: 3,
defaultTransition: $.crossFade()
}).addTo( 'svg' );