Hey guys, I need some help. Attached to this post is my autoplay.csv file and my autorun.bas file, currently running on my Roku HD600 v. 1.1.28.
I am having a few problems that I'm not sure how to resolve, so I'll start by describing what we are trying to achieve.
We have a computer running a user interface on an elo touch screen. There are three menus. The computer is sending serial commands to the roku based on what the user chooses. All elements of the UI are kept on the pc, only video elements are on the roku. We chose this method b/c we want the video to display on one screen, and the UI to display on another.
The first menu ask the user to choose between Menu_A and Menu_B. While the UI is on the First Menu, the roku is playing an attract loop.
If the User clicks on Menu_A, the roku begins playing Menu_A's attract loop. The UI then gives the user 8 options to view different video clips. When they choose a clip, the Roku then begins playing that video.
Here's the first issue. Currently, after the video finishes, the roku stop playing anything. It is supposed to jump back to the the Attract Loop it was playing, in this instance Menu_A's attract. I used the videoend function of the .CSV to achieve this, but it is not working.
The Second issue is this:
We want Menu_A and Menu_B to timeout. IF their individual attract loops have been running for more than 60 seconds, we want the roku to jump back to the First Menu's Attract loop. Currently, the roku plays through the chosen menu's attract loop and stops. It doesn't timeout back to the main loop, nor does it continue playing the current one.
Also, the roku keeps defaulting to VGA mode even though the .bas and .csv files both say to do 1280x720x60p. Can't figure out why.
I hope all this makes sense and someone can help me.
For those of you who look at the CSV file, the Main Menu attract is called NIK_a.mpg; the Menu_A attract is RW_A.mpg; and the Menu_B attract is GR_A.mpg.
Thanks in Advance.
RC Maples
autoplay.csv
VIDEOMODE,1280x720x60p,, IMAGEMODE,0,, EVENTS,,timeout:60,videoend STATE,NIK_a.mpg,,NIK_a.mpg STATE,GR_1.mpg,,GR_A.mpg STATE,GR_2.mpg,,GR_A.mpg STATE,GR_3.mpg,,GR_A.mpg STATE,GR_4.mpg,,GR_A.mpg STATE,GR_5.mpg,,GR_A.mpg STATE,GR_6.mpg,,GR_A.mpg STATE,GR_7.mpg,,GR_A.mpg STATE,GR_8.mpg,,GR_A.mpg STATE,RW_1.mpg,,RW_A.mpg STATE,RW_2.mpg,,RW_A.mpg STATE,RW_3.mpg,,RW_A.mpg STATE,RW_4.mpg,,RW_A.mpg STATE,RW_5.mpg,,RW_A.mpg STATE,RW_6.mpg,,RW_A.mpg STATE,GR_A.mpg,NIK_a.mpg, STATE,RW_A.mpg,NIK_a.mpg,
autorun.bas videomode=CreateObject("roVideoMode") videomode.SetMode ("1280x720x60p") video=CreateObject("roVideoPlayer") video.SetLoopMode(true) REM okay=video.PlayFile(root+"NIK_a.mpg") REM if okay=0 then REM print "Error finding /NIK_a.mpg" REM stop REM endif file=ReadAsciiFile("autoplay.csv") if file<>"" then play_csv goto play_vid