Roku HD2000 manual Testing Scripts, Playlists, and .CSV, Testing Playlists

Page 48

Testing Scripts, Playlists, and .CSV

An efficient way to test playback is to use the BrightSign Shell. By using the shell, you can see “debug output”. From the BrightSign Shell you can start your script manually and view output from the script. You can start a script from the shell by using the “script” command. Follow the directions above to connect the BrightSign to your computer, and access it using Hyperterminal.

As your script runs, you’ll see output in your terminal program. You’ll see a variety of output including mouse clicks or button presses, file names, audio and video settings, as well as any errors associated with incorrect use of functions or commands including the line numbers.

Testing Playlists

When your playlist contains the keyword “debug” the autorun.bas script provides detailed output to the BrightSign Shell during playback. To begin testing playlists, do the following:

1.Copy your content including playlist and autorun.bas to your CF card

2.Open your autoplay.bsp (main playlist file) and add the keyword: debug

3.Insert your CF card into the BrightSign, and add power

Testing Autorun and .CSV files

Running the autorun.bas in debug mode will provide detailed output to the BrightSign Shell while the script is running. To begin testing the autorun.bas script in debug mode, do the following:

1.Copy your content, including .csv file and autorun.bas to your CF card

2.Open autorun.bas and find the “debug=false” line near the top of the script

debug=false 'set to true to turn on debug prints; false to turn them off

3.Change to: debug = true

4.Rename autorun.bas file to “run.bas” for example, so it doesn’t start automatically

a)If you are testing a playlist, the main playlist must be named “autoplay.bsp”

b)If you are testing a .csv file, it must be named “autoplay.csv”

5.Insert your CF card into the BrightSign, and add power

6.At the Roku prompt, type the following: script run.bas

Testing Custom Scripts

To make troubleshooting your custom scripts much easier, we recommend adding checks and print statements like those found in the autorun.bas script. Here are a few examples:

Add print statements telling you which portion of the script you are currently in

Add print statements showing the type of event that just occurred

48

Image 48
Contents BrightSign Users Guide Introduction Brightsign Features Example Brightsign Setups Etting the D ATE/T IME on B Rights IGN HD2000 only Introduction BrightSign Features BrightSign BrightSign HD2000 HD600 Display ResolutionsPower Example BrightSign Setups Examples Try the DemoSoftware Versions BrightSign Documentation Getting Started Get Hardware You NeedMedia Types Supported Dolby Digital AC3 5.1 audio in a video fileAuto Playing a Video upon Power-up Playing Media with BrightSignAuto Playing a Playlist upon Power-up Auto Executing a .CSV File Upon Power-UpAuto Executing a Script Upon Power-Up Page Playlists Getting StartedPlaylist Commands Slideinterval # default is Audiochan # default isDisplayregistry registry section name default is null Lighton # Lightoff #Waitbuttonany Pause #Using Excel to Create Interactive Signs Creating Interactive DisplaysKeywords ImagemodeFlipelo State Controlling Gpio Outputs from a CSV File HD2000 only Preloading Images State File CSV Examples Page Rollover Regions using State Files CSV Rollover Events Page Example Scheduling Playback HD2000 only Scripts Hello worldRoku Objects Registry HD2000 only Gpio Control PortLearning More and Support Troubleshooting Autoplay & General TroubleshootingGeneral Playback Problems with the BrightSign Autoplay.mpg does not play automaticallyPlaylists Video output is redNo Audio during playback BrightSign and Accessories BrightSign isn’t booting up properly / Random lights litState Files CSV BrightSign Software Update Fails Video Selector switch does not workCompact Flash card is not recognized by the BrightSign USB Mouse is not responding USB Keyboard is not respondingElo Touch Screen coordinates aren’t working properly Appendix Selecting Compact Flash CardsBrightSign Compatibility Device Software Firmware and Upgrading BrightSign Shell Updating from the BrightSign ShellList of Shell Commands Example Shell Commands Playing Files & Changing SettingsUsing SD Cards HD2000 only Testing Compact Flash CardsTesting Scripts, Playlists, and .CSV Testing PlaylistsMult-run Script Limitations Setting the Date/Time on BrightSign HD2000 only Writing Boot Script & Logo to RomUsing Your Own Boot Logo Linux Shell HD2000 onlyUsing Your Own Boot Script Widescreen vs x3 Discussion Supported Input DevicesDisplaying Videos Displaying ImagesHD600 Connectors Ports USB MiceHD2000 Connectors Ports
Related manuals
Manual 2 pages 57.54 Kb