|
|
|
|
|
|
26
|
- `autoplay` whether playback should start automatically after loading
|
26
|
- `autoplay` whether playback should start automatically after loading
|
|
27
|
- `loop` whether playback is looped
|
27
|
- `loop` whether playback is looped
|
|
28
|
- `seekable` whether a seek-index is build during load time; neccessary for `seekToFrame` and `seekToTime` methods
|
28
|
- `seekable` whether a seek-index is build during load time; neccessary for `seekToFrame` and `seekToTime` methods
|
|
29
|
-- `progressiveThrottled` whether to throttle downloading chunks until they're needed for playback. Requires `progressive`; default `false`.
|
|
|
|
|
|
29
|
+- `preserveDrawingBuffer` whether the WebGL context is created with preserveDrawingBuffer - necessary for "screenshots" via `canvas.toDataURL()`; default `false`.
|
|
30
|
- `onload` a function that's called once, after the .mpg file has been completely loaded
|
30
|
- `onload` a function that's called once, after the .mpg file has been completely loaded
|
|
31
|
- `ondecodeframe` a function that's called after every frame that's decoded and rendered to the canvas
|
31
|
- `ondecodeframe` a function that's called after every frame that's decoded and rendered to the canvas
|
|
32
|
- `onfinished` a function that's called when playback ends
|
32
|
- `onfinished` a function that's called when playback ends
|