Forum Discussion
jbrave
15 years agoChannel Surfer
havent tried it, but you should be able to fade an image canvas screen IN over the top of an rovideoscreen, or if you are using rovideo player, put the player on a lower layer of the screen. Getting fades to look right is kind of tricky, you have to play with the timing - the delay between updates to the screen and also the step for fading in - too big a step and it looks clunky, too fast an update and it doesn't work right.
To do a fade you will need to create a layer with #00000000 where the first 00 is the hex code for the transparancy and the rest of the 00's can be the hex code for the color.
Then using the bytearray ToHexString you can increment the value until the layer is faded in.
reverse the process to fade out. The only thing is will the video stay underneath the layer when the next video starts playing, or will it pop to the top? another thing to find out - probably if the new video isloaded and played within the same subroutine without exiting and creating a new player, this will work, alternatively, define the video player as a global m.videoplayer var (these can cause some big trouble, so be careful)
To do a fade you will need to create a layer with #00000000 where the first 00 is the hex code for the transparancy and the rest of the 00's can be the hex code for the color.
Then using the bytearray ToHexString you can increment the value until the layer is faded in.
reverse the process to fade out. The only thing is will the video stay underneath the layer when the next video starts playing, or will it pop to the top? another thing to find out - probably if the new video isloaded and played within the same subroutine without exiting and creating a new player, this will work, alternatively, define the video player as a global m.videoplayer var (these can cause some big trouble, so be careful)