Skip to reading
GDScript Programming & Godot

StopVideo()

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

Stop Video

Stop the current video playback.

No options in the standard catalog schema.

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await StopVideo({})

In use. Use it to cancel a video inspection. Test the cancel path separately from natural completion; an explicit stop should not be assumed to raise the same completion event.

SeekVideo()#

Seek Video

Seek the current video to minutes plus seconds.

Source table from StopVideo(), page 204
Option key / fieldMeaning and inputDefault
Minute minutesWhole minutes; added to Seconds to form a playback position.0
Second secondsNumber; decimals allowed.0

Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.

Code example
await SeekVideo({"minutes": 0, "seconds": 1})

In use. Seek to 0 minutes 12 seconds while testing a clip. Playback and seeking depend on the imported format and decoder; test the build you intend to distribute.

Page 204 of 378Permalink
Go to page