0

scripts for playing picture more than 3s stand alone mode without playlist on usb stick

Hello,
I would like to modify the "autorun.brs" script in order to read all the video and image files located on the root of a USB key.
I can't use a plug in script because we don't use a presentation:
any key containing media should be able to be plugged into the BR HD 1024 and playback should start automatically. 

we just need to initialize the HD1024 with the sdcard in stand-alone mode with the right script. 

Basically, this works, but the image display time (*.png,*.jpg) is only 3 seconds. We want to be able to set this time in the autorun script

can you give me a tip on how to modify the autorun.brs initialization script correctly? 
or do I have to do it another way?

thanks for your help

3 comments

  • 0
    Avatar
    Bright Scripters

    Do you have an autorun.brs which you are currently working on?

     

  • 0
    Avatar
    Jerome PHILIP

    Hi Bright :D !  This is the autorun file and the pending-autorun file . there are regular file from brightsign unit setup.

    autorun.brs

    pending-autorun.brs

    thanks for your Help.

  • 0
    Avatar
    Dychicks

    I guess you would use roImagePlayer, with an event loop waiting for an roTimerEvent to trigger loading an image from a list of files retireved by the ListDir function.

    I'm only a beginner with BrightScript, and it's not easy to write autorun.brs from scratch. There's a message port system and an event loop to contend with, and the BrightScript Reference Manual is not always helpful. I never attempted to reuse an existing autorun.brs, because they are so complex and do many things I do not understand. You should start by getting into the debugger, where you can play with commands or step through scripts.

     

    Tips:

    Enable telnet using the undocumented networking registry key. Telnet is the debugging console. Without it, it's almost impossible to write scripts.

    In a blank autorun.brs just put a "end" statement to make the script engine stop without (hopefully) setting off the watchdog and causing a reboot. The reason for ending the autorun script is because you can't control the console after reboot, you can only watch whatever is printed to the console by the script engine. Ending the script gives you control of the telnet console.

    Enable the diagnostic web server and use it to upload scripts and other files, so you don't have to unplug the SD card.

     

Please sign in to leave a comment.