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: 

Video playing in full screen-please help

I am playing a video in a small screen. When OK is pressed the video has to play in full screen. Can anyone help me in doing this????

Thanks in advance ...
0 Kudos
5 REPLIES 5
RokuJoel
Binge Watcher

Re: Video playing in full screen-please help

Use ifVideoPlayer.SetDestinationRect(x as Integer, y as Integer, w as Integer, h as Integer) to set the window size to the full screen, and then set it back to the window when the user clicks OK again.

- Joel
0 Kudos
NewManLiving
Visitor

Re: Video playing in full screen-please help

You also need to adjust the transparency over it
My Channels: 2D API Framework Presentation: https://owner.roku.com/add/2M9LCVC
Updated: 11-11-2015 - Completed Keyboard interface
The Joel Channel ( Final Beta )
0 Kudos

Re: Video playing in full screen-please help

Thank you for your replies..RokuJoel and NewManLiving
I tried setting the destinationrect to full screen but it is not working
0 Kudos
NewManLiving
Visitor

Re: Video playing in full screen-please help

To expose the videoplayer you have to
Place a transparent layer directly over it
You can create a transparent layer by creating
A target rect with full transparent color above
the video player. It has to be at the
Same coordinates and the same size as
The destination rect of the player
To see any of your changes you need to
Refresh any changed layers by calling setlayer
Again. Your better off using roscreen
For what you are trying to accomplish
You are going to be disappointed in the
Performance with the imagecanvas
My Channels: 2D API Framework Presentation: https://owner.roku.com/add/2M9LCVC
Updated: 11-11-2015 - Completed Keyboard interface
The Joel Channel ( Final Beta )
0 Kudos
RokuJoel
Binge Watcher

Re: Video playing in full screen-please help

The customvideoplayer example in the SDK does this already, you can easily adapt this to your purposes.

- Joel
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.