Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Studio Chat / How can you get a video to play in the foreground - Depth 1

Author
Message
Orion5
3
Years of Service
User Offline
Joined: 6th Jun 2020
Location: SPAIN
Posted: 6th Jun 2020 12:54
Hi Guys, when I PlayVideo it displays in the background, how can I bring to the foreground in front of other objects, sprites, text etc? Do I really have to make all object not visible to see the video full screen?
Bengismo
6
Years of Service
User Offline
Joined: 20th Nov 2017
Location: Yorkshire, England
Posted: 6th Jun 2020 13:47 Edited at: 6th Jun 2020 13:49
Use PlayVideotoimage(ImageID) and then create a sprite at the depth you want (1) and set the sprites image to that used in playvideotoimage(). (Use SetSpriteImage(sprID, ImageID))

Then you can set the depth of the video to anything you want and any size you want. Even rotate it etc...

You can also place the video on a 3d object too, not that you need to.
Orion5
3
Years of Service
User Offline
Joined: 6th Jun 2020
Location: SPAIN
Posted: 6th Jun 2020 16:35
Fantastic Reply! Much appreciated, Thank You!
TamBam
12
Years of Service
User Offline
Joined: 29th Nov 2011
Location: India
Posted: 30th Jun 2020 11:07
is there any solve for youtube video ?

Login to post a reply

Server time is: 2024-03-29 08:26:06
Your offset time is: 2024-03-29 08:26:06