Stopping a Video playback

DarkBlueMonkey
14 Jun 2017, 21:02

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?


XanMag
14 Jun 2017, 22:47

How are you playing the video?


DarkBlueMonkey
16 Jun 2017, 15:52

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)