Your Digital Media Has Never Looked So Good

 
zig_zag
Topic Author
Posts: 6
Joined: Thu Mar 02, 2017 4:30 am

Scene Graph Video - Multiple Streams

Thu Mar 02, 2017 7:56 am

Hi! How can i pass multiple video streams to the Scene Graph Video? Or if i can't, what should i do to play a video with the quality depending on user's network connection?
Thanks!
- Gabriel
 
User avatar
RokuJoel
Posts: 1758
Joined: Mon Nov 14, 2011 5:22 pm

Re: Scene Graph Video - Multiple Streams

Wed Mar 08, 2017 5:17 pm

Hi Gabriel,

If you are playing mp4 files, you would hand the video node an array of streams. This on the Content Metadata page in our docs:


Video={}
 Video.streams=[{url : "http://me.com/x-384.mp4"
                       bitrate : 384
                       quality : false
                       contentid : "x-384"}
                {url : "http://me.com/x-2500.mp4"
                       bitrate : 2500
                       quality : true
                       contentid : "x-1500"}
                {url : "http://me.com/x-5000.mp4"
                       bitrate : 5000
                       quality : true
                       contentid : "x-5000"}]


If you are playing HLS or another similar format, you generally hand the player the Master Playlist file containing each of the bitrate variant streams, along with a switching strategy.


Video={}
video.streamFormat="hls"
video.Switching_Strategy="full-adaptation"
 Video.streams=[{url : "http://me.com/live/master_playlist.m3u8"
                       bitrate : 0
                       quality : false}]





Hope that helps,

 - Joel
 
zig_zag
Topic Author
Posts: 6
Joined: Thu Mar 02, 2017 4:30 am

Re: Scene Graph Video - Multiple Streams

Fri Mar 10, 2017 4:08 am

Hi Joel!

This is exactly what i need. I found it in the documentation but when i saw this:
"Used by roVideoPlayer and roVideoScreen to specify the content metadata for a set of fixed bitrate streams. Each array item specifies the URL, bitrate, etc. for one stream variant."

i thought that it's not available for SG Video.

Thank you and have a good day!!
- Gabriel

Who is online

Users browsing this forum: No registered users and 4 guests