Phaser API Documentation

  Version: 
loadMediaStream(stream, [noAudio], [crossOrigin])

Description:

Loads a Video from the given MediaStream object, ready for playback with the Video.play method.

Parameters:

name type arguments Default description
stream string

The MediaStream object.

noAudio boolean <optional> false

Does the video have an audio track? If not you can enable auto-playing on it.

crossOrigin string <optional>

The value to use for the crossOrigin property in the video load request. Either undefined, anonymous or use-credentials. If no value is given, crossorigin will not be set in the request.

Returns:
Description:

This Video Game Object for method chaining.

Since: 3.50.0