Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To use roStreamQueue as a streaming playlist, include it as the source component in an roMediaStreamer.SetPipeline() call. For video playback, use an roVideoPlayer instance as the destination component in the SetPipeline() call.

Code Block
titleExample (roVideoPlayer)
q=createobject("rostreamqueue")
q.queuefile("sd:/Test_Count_Up_Blue_Frames.ts")
q.queuefile("sd:/Test_Count_Up_Green_Frames.ts")
q.loop(true)
c=createobject("romediastreamer")
r=createobject("rorectangle",0,0,1920,1080)
v=createobject("rovideoplayer")
v.setrectangle(r)
c.setpipeline([q, v])
c.start()
Code Block
titleExample (roMediaStreamer)
  q=createobject("rostreamqueue")
  m=createobject("romediastreamer")
  q.queueFile("sd://encoder_1080p59_8mbps.ts")
  q.loop(true)
  didStream = m.setpipeline([q, "decoder:", "encoder:vformat=1080p60&vbitrate=3000", "udp://239.0.156.101:5000/"])
  ? "didStream: "; q
  m.Start()