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)
Please login to continue.