Video#connectToMediaStream()

connectToMediaStream(video, stream) → {Phaser.Video}

Connects to an external media stream for the webcam, rather than using a local one.

Parameters
Name Type Description
video HTMLVideoElement

The HTML Video Element that the stream uses.

stream MediaStream

The Video Stream data.

Returns

This Video object for method chaining.

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

Please login to continue.