A video file playback Drawable. Due to platform specifics, each target have their own limitations.
Hashlink: Playback ability depends on `video` library. At the time of HL 1.11 it's not bundled and have to be [compiled manually](https://github.com/HaxeFoundation/hashlink/tree/master/libs/video) with FFMPEG. JavaScript: HTML Video element will be used. Playback is restricted by content-security policy and browser decoder capabilities.Constructor
new(?parent:Object)
Create a new Video instance.
Parameters:
parent | An optional parent |
---|
Variables
Methods
load(path:String, ?onReady:() ‑> Void):Void
Loads and starts the video playback by specified path
and calls onReady
when playback becomes possible.
@param path The video path. Have to be valid file-system path for HL or valid URL (full or relative) for JS.
@param onReady An optional callback signalling that video is initialized and began the video playback.
dynamiconError(msg:String):Void
Sent when there is an error with the decoding or playback of the video.