Video#updateTexture()

updateTexture(event, width, height)

Called automatically if the video source changes and updates the internal texture dimensions.
Then dispatches the onChangeSource signal.

Parameters
Name Type Argument Description
event object <optional>

The event which triggered the texture update.

width integer <optional>

The new width of the video. If undefined video.videoWidth is used.

height integer <optional>

The new height of the video. If undefined video.videoHeight is used.

Source code: gameobjects/Video.js (Line 572)
doc_phaser
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.