The ECP commands are provided to make life easier for third parties. If you have suggestions for enhancements or additions to ECP support on the HD1000 (or if you find an error in this document), please don’t hesitate to write to us at support@rokulabs.com. Requests will be considered for inclusion in later software releases.
QUIT About Paths The various media sources available to the HD1000 appear in /mnt where flash0 is the built- in storage, flash1 is Compact Flash, flash2 is SD/MMC, flash3 is Memory Stick and flash4 is SmartMedia. Mounted network shares can be found in /mnt/smb/.
#!/bin/sh # Adding /usr/local/bin to the path allows the script # to call “photo” and “ecp” instead of # “/usr/local/bin/photo” and “/usr/local/bin/ecp” Roku External Control Protocol for the HD1000...
“.roku” extension, like “MySlideshow.roku”. Put the file onto a flash card or in the shared folder on your computer that you connect to from your HD1000. You will see a button in the “Roku Applications” section of the Main Menu corresponding to your new script.
# do this here because the first command besides the # directory causes Photo to open the image display # window, which paints the screen black – waiting until # the first image has been displayed eliminates the Roku External Control Protocol for the HD1000...
Page 8
PAN _ RIGHT ecp photoApp PAN _ RIGHT ecp photoApp PAN _ RIGHT ecp photoApp PAN _ RIGHT ecp photoApp PAN _ RIGHT ecp photoApp PAN _ RIGHT ecp photoApp PAN _ RIGHT Roku External Control Protocol for the HD1000...
Page 9
INFO _ MODE none # Let the slideshow run for a minute and a half, and # then we're done. sleep 90 ecp photoApp QUIT ecp mp3player QUIT sleep 2 echo "done" Roku External Control Protocol for the HD1000...
Note that Photo’s normal button and infrared handling is always active. If your application desires to completely control Photo while locking out keys, it should open an always-on-top window and SetFocus() on that window after launching Photo. This window should trap all keys. Roku External Control Protocol for the HD1000...
Page 11
PAN_RIGHT <none> Exactly like pressing the right arrow on the remote PAN_UP <none> Exactly like pressing the up arrow on the remote PAN_DOWN <none> Exactly like pressing the down arrow on the remote Roku External Control Protocol for the HD1000...
Page 12
[Limitation: if the image is too large to fit into the hardware scaler, it is scaled to fit. In this case, all of the parameters listed here are scaled as well.] Roku External Control Protocol for the HD1000...
Page 13
Not a toggle. PLAY <none> Resume/start a slideshow. Not a toggle. NEXT_IMAGE <none> Exactly like pressing the >>| key on the remote PREV_IMAGE <none> Exactly like pressing the |<< key on the remote Roku External Control Protocol for the HD1000...
Page 14
If the optional and value). zoom and pan arguments are supplied, the image is displayed zoomed and panned. SET_ZOOM_AND_PAN above. Roku External Control Protocol for the HD1000...
Appendix C: Music player (“Listen”) ECP commands There are two music playing applications on the HD1000, release 1.0. The first is called “Listen”, and it is the GUI player you normally launch from the Main Menu. The second is called “mp3player”, and is a faceless background application used by Art Packs or other tasks where...
Page 16
ID3-year of the currently playing track. SetDirectory <full path> Set the currently viewable-browseable directory to <full path>, if it exists. FilePlay <filename> Plays <filename> if it is in the currently viewed list of files. Roku External Control Protocol for the HD1000...
<full path> to the end of the list of files to be played. INSERT <full path> Inserts the music file at <full path> after the currently playing file in the list. Roku External Control Protocol for the HD1000...
Need help?
Do you have a question about the HD1000 and is the answer not in the manual?
Questions and answers