Video#stop()

stop() → {Phaser.Video}

Stops the video playing.

This removes all locally set signals.

If you only wish to pause playback of the video, to resume at a later time, use Video.paused = true instead.
If the video hasn't finished downloading calling Video.stop will not abort the download. To do that you need to
call Video.destroy instead.

If you are using a video stream from a webcam then calling Stop will disconnect the MediaStream session and disable the webcam.

Returns

This Video object for method chaining.

Source code: gameobjects/Video.js (Line 723)
doc_phaser
2017-02-14 11:19:34
Comments
Leave a Comment

Please login to continue.