0

BrightSign Master and Slave Script 4k

Hello,

I am using the BrightSign Script for Bright Sign Players 4k models. I want to use 1 Master Script and 1 Slave Script. I changed all the variables and I also changed the video name same. It won't work, the Master Player is playing the video, but the Slave Player don't. Can you help me? It's urgent!

 

Thank you.

8 comments

  • 0
    Avatar
    Lyndon

     

    can you post the script you're using? I don't understand your reference to changing all the variables. Need a sample script and more details about exactly what you're using and doing, and what's not working. 

  • 0
    Avatar
    Giulia Faster

    Hello Lyndon, i mean by changing the variables that i changed the Resolution, framerate, etc. I don't know how to post a sample script here??

    I am using the Bright Sign Player 4k242 and I want to Show two different Videos on two Displays. but they should Play synchronous. Not working is the synchronicity, but the Videos are playing on both Displays. Do you understand me??

     

  • 0
    Avatar
    ^UD\_$

    The BrightWall feature in BrightAuthor, should take care of everyting for you.

    In BrightAuthor, click on the Create tab.

     

  • 0
    Avatar
    Giulia Faster

    I know how to do it in Bright Author, but I want to use the both scripts. Thank you anyway.

  • 0
    Avatar
    Lyndon

    If you can't post the scripts you're using, post the contents of the script, or email it to support. I need to see what you're changing. I have a script I wrote a long time ago that synchronizes any 1 video.  It sets a static ip on the master, and on the slave. It looks for a single file, and assumes the first file it finds it should synchronize.  If this is  just two players, not on a wider network, then it doesn't matter that the script is setting an ip address on the master unit. 

    I wasn't sure if that's the one you're using. 

    https://www.brightsignnetwork.com/download/Scripts/AnyOneFileOverEthernet.zip

  • 0
    Avatar
    Giulia Faster

    That's not the one I am using, but I will try this one out and let you know. If it doesn't work, then I will post the script here.

  • 0
    Avatar
    Giulia Faster

    Okay, so I tried those scripts. Master is working, but slave not. I will copy here your scripts with my changes and you can tell me if I did something wrong.

    Your Master Script with my changes:

    debug = false
    EnableZoneSupport(true)

    videoFile = "video.mp4"

    REM
    REM Setting Manual IP address
    nc = CreateObject("roNetworkConfiguration", 0)
    nc.SetIP4Address("192.168.1.101")
    nc.SetIP4Netmask("255.255.255.0")
    nc.SetIP4Broadcast("192.168.1.255")
    nc.SetIP4Gateway("192.168.1.1")
    nc.Apply()

    REM
    REM IP address 255.255.255.255 sends to all units
    sender = CreateObject("roDatagramSender")
    sender.SetDestination("255.255.255.255", 11167)

    v = CreateObject("roVideoPlayer")

    p = CreateObject("roMessagePort")
    v.SetPort(p)

    mode=CreateObject("roVideoMode")
    mode.SetMode("1920x1080x30p")


    sleep(10000)
    list=matchfiles(".","*.ts")
    if list.Count() > 0 then
     print "TS found"
     videoFile=list.RemoveHead()
    else
     goto match_mpg
    endif

    start:
     print "start"
     sender.Send("pre")
     v.PreloadFile(videoFile)
     sleep(100)
     sender.Send("ply")


     v.Play()


    listen:
     msg = wait(2000,p)
     
     if type(msg) = "roVideoEvent" and msg.GetInt() = 8 then
         sleep(1000)
      goto start
     endif

     goto listen
     
     
    match_vob:
    list=matchfiles(".","*.vob")
    if list.Count() > 0 then
     print "vob found"
     videoFile=list.RemoveHead()
    endif
    goto start
     
    match_mpg:
    list=matchfiles(".","*.mpg")
    if list.Count() > 0 then
     print "mpg found"
     videoFile=list.RemoveHead()
    else
     goto match_vob
    endif
    goto start

    -------------------------------------------------------------

    Your Slave script with my changes:

    EnableZoneSupport(true)

    mode=CreateObject("roVideoMode")
    mode.SetMode("1920x1080x30p")

    REM
    REM Setting Manual IP address
    REM To use DHCP, add REM before each of the nc.SetIP* lines below.
    REM If you have already run the script, also remove REM from the
    REM nc.SetDHCP() line below to change from manual IP back

    nc = CreateObject("roNetworkConfiguration", 0)
    REM nc.SetDHCP() 'to change from Manual IP back to DHCP

    nc.SetIP4Address("192.168.1.102")
    nc.SetIP4Netmask("255.255.255.0")
    nc.SetIP4Broadcast("192.168.1.255")
    nc.SetIP4Gateway("192.168.1.1")
    nc.Apply()

    receiver = CreateObject("roDatagramReceiver", 11167)

    v = CreateObject("roVideoPlayer")
    sleep(200)

    v.PreloadFile(videoFile1)

    p = CreateObject("roMessagePort")

    receiver.SetPort(p)

    list=matchfiles(".","*.mp4")
    if list.Count() > 0 then
     print "TS found"
     videoFile=list.RemoveHead()
    else
     goto match_mpg
    endif

    listen:
     msg = wait(2000,p)

     if type(msg) = "roDatagramEvent" then

            command = left(msg, 3)

      if command = "pre" then
        v.PreloadFile(videoFile)
      elseif command = "ply" then
        v.Play()
      else
       print msg
      endif

     endif

     goto listen

     match_vob:
    list=matchfiles(".","*.vob")
    if list.Count() > 0 then
     print "vob found"
     videoFile=list.RemoveHead()
    endif
    goto listen
     
    match_mpg:
    list=matchfiles(".","*.mpg")
    if list.Count() > 0 then
     print "mpg found"
     videoFile=list.RemoveHead()
    else
     goto match_vob
    endif
    goto listen

     

     

     

    Thank your for your help!!!

     

  • 0
    Avatar
    Giulia Faster

    After your answer, I will post the scripts I am using, here!

Please sign in to leave a comment.