VideoSprite
| Kind | class |
| Package | objects |
| Full name | objects.VideoSprite |
| Source | source/objects/VideoSprite.hx |
| Extends | FlxSpriteGroup |
| Compiled when | #if !(VIDEOS_ALLOWED && hxvlc) |
| Metadata | @:access(play.PlayState) |
Public fields
| Name | Type | Static | Default | Notes |
|---|---|---|---|---|
finishCallback | Void->Void = null | no | — | #if !(VIDEOS_ALLOWED && hxvlc) |
onSkip | Void->Void = null | no | — | #if !(VIDEOS_ALLOWED && hxvlc) |
holdingTime | Float | no | 0 | #if !(VIDEOS_ALLOWED && hxvlc) |
videoSprite | NullVideoSpriteBackend | no | new NullVideoSpriteBackend() | #if !(VIDEOS_ALLOWED && hxvlc) |
canSkip | Bool | no | false | property (default, set) · #if !(VIDEOS_ALLOWED && hxvlc) |
waiting | Bool | no | false | #if !(VIDEOS_ALLOWED && hxvlc) |
Public methods
new (constructor)
function new(videoName:String, isWaiting:Bool, canSkip:Bool = false, shouldLoop:Dynamic = false, autoPause:Bool = true)
Only compiled when #if !(VIDEOS_ALLOWED && hxvlc).
| Parameter | Type | Default |
|---|---|---|
videoName | String | — |
isWaiting | Bool | — |
canSkip (optional) | Bool | false |
shouldLoop (optional) | Dynamic | false |
autoPause (optional) | Bool | true |
play
function play()
Only compiled when #if !(VIDEOS_ALLOWED && hxvlc).
resume
function resume()
Only compiled when #if !(VIDEOS_ALLOWED && hxvlc).
pause
function pause()
Only compiled when #if !(VIDEOS_ALLOWED && hxvlc).
Internals
Private / internal members
| Field | Type | Static |
|---|---|---|
videoName | String | no |
alreadyDestroyed | Bool | no |
resolved | Bool | no |
| Method |
|---|
override function update(elapsed:Float) |
override function destroy() |
function set_canSkip(newValue:Bool) |