Stopping a Video playback

I'd like to add an intro video with a command like "start" to let the player start the game.

Is there a way to STOP the playback of a video programmatically?


How are you playing the video?


I'm using ShowYouTube(string id)

I had a think, and if I could just get rid of the Youtube iframe, it'd stop, so I used ClearScreen().. But if I put in a cutscene, that'd get rid of the text history, so would be a bit disruptive.... Would be interested if anyone knows a real way. If not, would be great if you could do something like the following:

iframeid = ShowYouTube(string id)
WaitForKeyPress()
StopYouTube(iframeid)


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums