JSignage:PlaylistTutorial5

From SpinetiX Support Wiki

Jump to: navigation, search

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' );

Preview

This page was last modified on 9 August 2017, at 16:18.