This represents a Video file.
Constructor
Variables
Methods
play(loop:Bool = false):Void
Play / resume the media element.
Parameters:
loop | If playing it looped, default = false. |
---|
setVolume(volume:Float):Void
Set the media volume, between 0 and 1.
Parameters:
volume | The new volume, between 0 and 1. |
---|
update(dt:Float):Void
Call this every frame to update the video. This is not required on all targets but where it's not required the function just does nothing - so please call it.