roVideoPlayer

Hello there!

I’m using the 2D API for my game UI, in it I have a section to display the video. The video is should not be full screen (thinking of youtube like player embeded in a page)

I’ve been trying to get the roVideoPlayer to display, unfortunately all the examples i’ve found make usage of the roImageCanvas which i do not use and for force me to do massive changes to the composition.

I was wondering if anyone could provide a code snippet (assuming that it would be possible) where the player can be added to the roScreen to get that youtube look (not fullscreen).

Perhaps this recent post relates: viewtopic.php?f=34&t=70763

The search facility failed me! Thanks a million for the link, it got sorted :wink:

You use rovideoplayer setdestinationrect
To define the x,y,width,height. Then
You use roscreen drawrect with the same
X,y,w,h. To draw a fully transparent rectangle
Over it. &h00000000