Video#createVideoFromBlob()

createVideoFromBlob(blob) → {Phaser.Video}

Creates a new Video element from the given Blob. The Blob must contain the video data in the correct encoded format.
This method is typically called by the Phaser.Loader and Phaser.Cache for you, but is exposed publicly for convenience.

Parameters
Name Type Description
blob Blob

The Blob containing the video data: Blob([new Uint8Array(data)])

Returns

This Video object for method chaining.

Source code: gameobjects/Video.js (Line 507)
doc_phaser
2017-02-14 11:19:22
Comments
Leave a Comment

Please login to continue.