Pin


duration

Returns the duration of the file in milliseconds.


elapsed

Returns the elapsed time in milliseconds.


file, <filename>

Writes or reads the name of the video file. When writing the value parameter is text string with name of the file.


pause

Pauses the player. Value parameter is ignored.


play

Starts the player. Value parameter is ignored.


playing

Reads the playing status, returns true or false.


position, <pos>

Sets position in either milliseconds or percent. Value parameters is numerical string (ms) with optional percentage sign (%).


stop

Stops the player. 


Event


onfile, <module>, <filename>, <duration>, <audio-only>

Triggered when a file is loaded. Parameters include the module name, file name, file duration and audio-only flag.


Example


The following example starts Player 1.



apiwrite player 1, play, true



The following example sets Player 1's position to halfway.



apiwrite player 1, position, 50%