Roku HD110 User Guide - Page 100

Testing autorun and interactive playlist files, Testing custom scripts

Page 100 highlights

Testing autorun and interactive playlist files Running AUTORUN.BRS in debug mode provides detailed output to the BrightSign shell while the script is running. To begin testing the AUTORUN.BRS script in debug mode, do the following: 1 Copy your content, interactive playlist, and AUTORUN.BRS to your CF/SD card. 2 Open AUTORUN.BRS and find the following line near the top of the script: debug=false 'set to true to turn on debug prints; false to turn them off 3 Change this line to: debug = true 4 Rename AUTORUN.BRS so it doesn't start automatically. For example, rename it RUN.BRS. • If you are testing a playlist, the main playlist must be named AUTOPLAY.BSP • If you are testing an interactive playlist, it must be named AUTOPLAY.CSV 5 Insert your CF/SD card into BrightSign, and add power. 6 When the Roku prompt appears, type the following: script run.brs Testing custom scripts To make troubleshooting your custom scripts much easier, we recommend adding check and print statements, like those found in the AUTORUN.BRS 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 • Add print statements showing names of files read from the flash card • Add print statements showing the coordinates of a mouse click 94 • •

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118

94
Testing autorun and interactive playlist files
Running AUTORUN.BRS in debug mode provides detailed output to the BrightSign shell while
the script is running. To begin testing the AUTORUN.BRS script in debug mode, do the following:
1
Copy your content, interactive playlist, and AUTORUN.BRS to your CF/SD card.
2
Open AUTORUN.BRS and find the following line near the top of the script:
debug=false
'set to true to turn on debug prints; false to turn them off
3
Change this line to:
debug = true
4
Rename AUTORUN.BRS so it doesn’t start automatically. For example, rename it RUN.BRS.
If you are testing a playlist, the main playlist must be named
AUTOPLAY.BSP
If you are testing an interactive playlist, it must be named
AUTOPLAY.CSV
5
Insert your CF/SD card into BrightSign, and add power.
6
When the Roku prompt appears, type the following:
script run.brs
Testing custom scripts
To make troubleshooting your custom scripts much easier, we recommend adding check and
print statements, like those found in the AUTORUN.BRS 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
Add print statements showing names of files read from the flash card
Add print statements showing the coordinates of a mouse click