Merge pull request #6941 from drakang4/master

Fix stream parameter type of video.loadMediaStream
This commit is contained in:
Richard Davey 2024-11-13 22:23:39 +00:00 committed by GitHub
commit 4018be0bd3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -689,7 +689,7 @@ var Video = new Class({
* @method Phaser.GameObjects.Video#loadMediaStream * @method Phaser.GameObjects.Video#loadMediaStream
* @since 3.50.0 * @since 3.50.0
* *
* @param {string} stream - The MediaStream object. * @param {MediaStream} stream - The MediaStream object.
* @param {boolean} [noAudio=false] - Does the video have an audio track? If not you can enable auto-playing on it. * @param {boolean} [noAudio=false] - Does the video have an audio track? If not you can enable auto-playing on it.
* @param {string} [crossOrigin] - 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. * @param {string} [crossOrigin] - 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.
* *