Player Pins

TCP Server ›› API ››
Parent Previous Next

Pin


aspectratio

Writes or reads the player's current aspect ratio setting as text string in floating (decimal) point format, where 0 indicates the Auto setting.


cut

Executes the cut command, selecting the module in the program bus. Value parameter is ignored.


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

Executes the pause command, identical to clicking the Pause button. Value parameter is ignored.


play

Executes the play command, identical to clicking the Play button. Value parameter is ignored.


playing

Reads the playing status, returns true or false.


stop

Executes the stop command, identical to clicking the Stop button. Value parameter is ignored.


Example


The following example starts Player 1.



apiwrite player 1, play, true



The following example sets Player 1's aspect ratio to widescreen.



apiwrite player 1, aspectratio, 1.78