andenagaveni24
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2014
01:26 AM
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 ...
Thanks in advance ...
5 REPLIES 5

RokuJoel
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2014
03:40 PM
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
- Joel

NewManLiving
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2014
05:28 PM
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 )
Updated: 11-11-2015 - Completed Keyboard interface
The Joel Channel ( Final Beta )
andenagaveni24
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2014
12:10 AM
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
I tried setting the destinationrect to full screen but it is not working

NewManLiving
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2014
06:10 AM
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
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 )
Updated: 11-11-2015 - Completed Keyboard interface
The Joel Channel ( Final Beta )

RokuJoel
Binge Watcher
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2014
01:40 PM
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
- Joel