0

Play all files script



Hi again, I have another project that needs a very simple script. I want to play a series of files in alphabetical order and have the entire program loop (i.e. video01, video02, video03, etc. then return to video01, video02, video03, etc.ad infinitum). I want to achieve this via a script (not via BrightAuthor). I'm running firmware 3.5.68 on a brand new HD110; files are h.264 .mov files; videomode is 1280x720x60p. Would you be so kind to provide this script please.

3 comments

  • 0
    Avatar
    RokuLyndon


    You don't need a script to do this. If you copy files to a flash card, with no script, they'll play in a loop, in alphabetical order. I don't know if you need more than that. If you've previously setup your brightsign to call into a brightsign network account, you'll need to run the registry clean script to remove those recovery settings so that the built-in script that does the alpha playback will work.
  • 0
    Avatar
    Mark


    Hi Lyndon,
    If I don't include a script how do I set the resolution?
  • 0
    Avatar
    RokuLyndon



    The resolution would be set by automode.  If you search for this function in the attached file, you can change the line that says "videomode$ = auto" to the example I list below where I set it to 1080 60p. Then, put the changed script on your flash card with the content.

    https://www.brightsignnetwork.com/download/Scripts/autoplay-noautomode/Autorun.brs

    Sub SetAutoVideoMode(debugOn As Boolean)

       di = CreateObject("roDeviceInfo")
       model = di.GetModel()
       di=0
       if model <> "HD2000" then
           videoMode = CreateObject("roVideoMode")
           videoMode$ = "1920x1080x60p"
           if debugOn then print "VIDEOMODE Set to: "; videoMode$
           ok = videoMode.SetMode(videoMode$)
           if ok = 0 then
               if debugOn then print "Error: Can't set VIDEOMODE to ::"; videoMode$; "::" : stop
           endif
           videoMode = 0
       endif

       return
       
    End Sub

Please sign in to leave a comment.