class BinkPlayer extends Sprite (client-side)
Available since version: 0.3.4
Note
If you want to define your own shape (populate vertices manually), use 1st constructor.
To create a Sprite with default fixed rectangular shape (4 vertices) use 2nd constructor.
This class represents 2d video player visible on the screen.
Constructor
BinkPlayer(string txt)
Parameters:
stringtxt: the texture file to display.
Constructor
BinkPlayer(int x, int y, int width, int height, string txt)
Parameters:
intx: the x position in virtuals.inty: the y position in virtuals.intwidth: the width size in virtuals.intheight: the height size in virtuals.stringtxt: the texture file to display.
Properties
bool loop
Represents true if video should be played from the start if it finishes, otherwise false.
bool paused
Represents true if video playback is currently paused, otherwise false.
bool quickVideoDecoding
Available since version: 0.3.9.0
Note
Set this field to true if you want to avoid lag while moving to specific video frame, but remember that this will cause video glitches.
Represents the video quick video decoding (by default it's disabled).
bool quickAudioDecoding
Available since version: 0.3.9.0
Note
Set this field to true if you want to avoid lag while moving to specific video frame, but remember that this will cause audio glitches.
Represents the video quick sound decoding (by default it's disabled).
bool alphaSupported (read-only)
Represents true if video supports alpha channel, otherwise false.
float volume
Represents the current video volume.
float fps (read-only)
Available since version: 0.3.9.0
Represents the video frames per second ratio for loaded video file.
float duration (read-only)
Represents the total video duration in seconds.
float remainingTime (read-only)
Represents the remaining video time in seconds.
float currentTime
Represents the current video time in seconds.
Methods
play
This method plays the video.
void play()
stop
This method stops the video.
void stop()
Callbacks
No callbacks.