PlayVideo(n) and clear the space of video
- Juan Carlos
- Posts: 932
- Joined: Mon Sep 06, 2010 1:02 pm
PlayVideo(n) and clear the space of video
I'm working in a game with video but I found a problem with the PlayVideo(n) is impossible clear the game window and the the PlayVideo continues with the last frame from the video, I try to use the cls command display a blank brush, but as the video is played over the window of Hollywood no embebed, how I can clean the own video window?
- airsoftsoftwair
- Posts: 5834
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: PlayVideo(n) and clear the space of video
Just call StopVideo() to remove the video overlay from the display.
- Juan Carlos
- Posts: 932
- Joined: Mon Sep 06, 2010 1:02 pm
Re: PlayVideo(n) and clear the space of video
uffs, Andreas I didn't think in that it, use the StopVideo, when the movie finish.Andreas wrote:Just call StopVideo() to remove the video overlay from the display.
- Juan Carlos
- Posts: 932
- Joined: Mon Sep 06, 2010 1:02 pm
Re: PlayVideo(n) and clear the space of video
Well, I test it and yes with StopVideo(1) removed the video overlay but neither played it, in theory with this easy routine:Andreas wrote:Just call StopVideo() to remove the video overlay from the display.
PlayVideo(1)
playing = IsVideoPlaying(1)
If playing = False Then StopVideo(1)
When the video left to plays the StopVideo(1) will remove the overlay but no it continues, and the problem is that is to show miniclips in a game that have to be showed and when they finish continue play the game or return to menus, but no when the overlay continues.
- airsoftsoftwair
- Posts: 5834
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: PlayVideo(n) and clear the space of video
Sorry, I don't understand what is the problem here.
- Juan Carlos
- Posts: 932
- Joined: Mon Sep 06, 2010 1:02 pm
Re: PlayVideo(n) and clear the space of video
Very easy, the Video is played but no removed the overlay.Andreas wrote:Sorry, I don't understand what is the problem here.