Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
kszadkow
Visitor

how to get stream video resolution?

Hi All

Is it possible in screen graph to get native stream resolution? or at least its aspect ratio?

Thank you in advance for your feedback.
4 REPLIES 4
RokuTomC
Community Moderator
Community Moderator

Re: how to get stream video resolution?

The width and height are set in the XML of the Video node — your StackOverflow question about padding, it'd also be good just to verify that the video streams themselves do not have any padding.
0 Kudos
destruk
Binge Watcher

Re: how to get stream video resolution?

I think what he's looking for the is width and height of the source video itself that is streaming, rather than the specified size of the video player window playing the video stream.
I don't know of a way to get that info on the roku side unless it has been pre-specified in the content feed and parsed into the content node before display (ie running ffmpeg or mediainfo on the server, having the source resolution in a database, or manually specified in the xml or json feed for the channel).
There isn't a corresponding roVideoMetaData to correspond or accompany the roAudioMetaData component.
0 Kudos
kszadkow
Visitor

Re: how to get stream video resolution?

Destruk is right I am after the stream resolution not the Video component size. I need to accurately align some graphical elements with the video.
0 Kudos
adrianc1982
Visitor

Re: how to get stream video resolution?

i would also love to have this function to get the resolution that way i can make a proper zoom on 4:3 content if the user decides to... (stretch)
0 Kudos