Creating a playlist in Clipstream™ Audio 3
A Clipstream™ Audio 3 applet can play a list of separate audio files in a sequence and set to play on a clock schedule. See an example below and follow a guide to create one of your own.

Prerequisites
  • text or web page editor
  • existing Clipstream™ Audio applet and generated files
  • ability to upload files to a web server
Example
View the example here. Click play and listen as it plays different songs one after another.

Create a playlist
Create a playlist by editing an existing AudioStreamURL parameter and adding new ones for each song to be playlisted.

Note: These steps assume you already have several encoded Clipstream .csa files.

  1. Open up an existing .js included file in a text editor or your web development program.

    ex. mymusicfile.js


  2. Locate an existing AudioStreamURL parameter

    ex.


    As you can see from this, the value lists the path and filename of the .csa file the applet plays.

    For your next step you will be editing this one AudioStreamURL so that you can see the slight difference between this usual AudiostreamURL and the playlisted version.


  3. Insert your cursor before the path of the .csa file, then add every available bitrate you encoded for that .csa file, separated by "/" slash marks.

    ex.
    value="44/128/256/512,content/a/audio/01_-_This_Is_How_A_Heart_Breaks'

    This tells the applet how many bit rates to search for in a Playlist configuration.

    In your next step you will make additional AudioStreamURLs for all of the files you wish to play.

Add additional AudioStreamURLs for each new song on the playlist
  1. Duplicate the AudioStreamURL you just edited. Copy (CTRL-C) and Paste (CTRL-V) in lines below.

  2. Edit the param name for each additional AudioStreamURL so that they are numbered in sequence

    ex.
    <PARAM name="AudioStreamURL1" value...
    <PARAM name="AudioStreamURL2" value...
    <PARAM name="AudioStreamURL3" value...

  3. Edit the value so that each links to a different .csa file and has the appropriate bitrate versions.\

    ex.
    <param name='AudioStreamURL1' value='32/96/512,http://video.clipstream.com/content/a/audio/clips/Nelly_Furtado_Track01_32.csa'>
    <param name='AudioStreamURL2' value='32/96/512,http://video.clipstream.com/content/a/audio/clips/Pink_Track02_32.csa'>
    <param name='AudioStreamURL3' value='32/96/512,http://video.clipstream.com/content/a/audio/clips/Tom_Petty_Track02_32.csa'>


    Note: to change the order in the playlist, simply change the AudioStreamURL numbers. Note: Check the filenames and paths for the .csa files as the playlist will skip any it cannot find.
Upload and test
  1. Save the .js
  2. Make sure that the page that is to display the playlisted clip links correctly to the .js
  3. Upload both page, .js and .csa files

clipstream.com :: copyright © destiny media technologies, inc. | support | investors | broadcast internet radio