Pin


duration

Returns the duration of the file in seconds.


elapsed

Returns the elapsed time in seconds.


file

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

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


stop

Stops the player. Value parameter is ignored.


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%