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: 

Changing video size in customvideoplayer example

Im looking to quickly modify the customvideoplayer example for my own needs.
I have been able to swap out images, text and the video content, but I haven't figured out yet how to change the video size when the video is not fullscreen.
I can't see where the size of the video object is set when the player. I do not need the help text that appears on the right, so have removed that, so would want the video to be larger before fullscreen. Also, I would only ever be using 16:9 footage, so would want the video player area to also be 16:9, removing the black bars above and below the video.

Any help on this would be useful.

Thanks,

James
0 Kudos
1 REPLY 1
RokuChris
Roku Employee
Roku Employee

Re: Changing video size in customvideoplayer example

Take a look at roVideoPlayer's SetDestinationRect(), http://sdkdocs.roku.com/display/RokuSDK ... eArrayrect
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.