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
2017-02-14 11:19:37
Comments
Leave a Comment

Please login to continue.