0

Streaming Display Lags

I have a NodeJS webpage that I am trying to stream the display of and I have it working but the video lags behind a good 4-10 seconds and sometimes seems to not update at all. I have my laptop and XT1143 running locally without much other network traffic. Any ideas on how this can be improved?

I tried lowering the display to 720p30 from 1080p30 without much difference. The vbitrate is set to 2000.

2 comments

  • 0
    Avatar
    Bryan Crotaz

    I'm trying to do the same thing - how did you set it up to stream the webpage?

  • 0
    Avatar
    Dustin Vietzke

    Leveraging the documentation and Github repo, I came up with code below. It stores the media server in the global 'm' variable as well as returning if you want to store it in a localized variable.

    https://docs.brightsign.biz/display/DOC/roMediaServer
    https://docs.brightsign.biz/display/DOC/roMediaServer
    https://github.com/brightsign/BrightAuthor-Plugins/tree/master/Media-Server

     

    Function createMS(port% asinteger) asObject

        'LogMessage("createMS() m.mediasrvr: " + type(m.mediasrvr))
        iftype(m.mediasrvr) <>"roMediaServer"then
            m.mediasrvr =createobject("roMediaServer")
        endif
        ms = m.mediasrvr
        'LogMessage("createMS() ms: " + type(ms))
        if ms <>invalidthen
            addr ="http:port="+ port%.tostr()
            LogMessage("createMS() addr: "+ addr)
            ms.start(addr)

            pipleline$ ="display:mode=1&vformat=1080p30&vbitrate=2000,encoder:,"
            address$ ="mem:/display"
            'LogMessage("createMS() strmr: " + type(strmr))
            iftype(strmr) <>"roMediaStreamer"then
                strmr =CreateObject("roMediaStreamer")
            endif
            'LogMessage("createMS() strmr: " + type(strmr))
            if strmr <>invalidthen
                strmr.reset()
                strmr.SetPipeline(pipleline$+address$)
                strmr.start()
            else
                LogMessage("createMS() Failed to create Display Streamer...")
            endif
        else
            LogMessage("createMS() Failed to create Media Server...")
        endif

        return ms
    End Function
Please sign in to leave a comment.