HTTP API
PlayoutONE Standard and Pro, both allow you to interface simply with it using HTTP. To enable this feature you must go into the PlayoutONE Settings>Splits Tab and select the Enable HTTP Server option. You can alter the port from the default of 81 if you wish.
Once this is enabled it immediately starts PlayoutONE listening for incoming commands on the machine name via the port you set. So if your machine is called P1-STUDIO1 and you left the port as the default of 81 then you would could send a command to PlayoutONE to return the current progress like this:
http://P1-STUDIO:81/?c=GET CURRENT PLAYER PROGRESS_MS
Commands
All multiple value responses have their values separated by ASCII Chr(9) to make it easier to split this data up once received.
Command | Description | Returns |
GET CURRENT PLAYER |
Get the current playing player. |
Base zero result, i.e. Player 1 on the screen will be 0 in the response. Player 2 on screen will be 1 in the response and so on. |
GET CURRENT PLAYER POSITION or GET CURRENT PLAYER POSITION_MS |
Get the current playing player position in milliseconds. |
Current player (base zero) Current Position Title Artist |
GET CURRENT PLAYER POSITION_TIME |
Get the current playing player position in human time hh:mm:ss | Current player (base zero) Current Position Title Artist |
GET CURRENT PLAYER PROGRESS or GET CURRENT PLAYER PROGRESS_MS |
Get the current playing players progress in milliseconds. | Current player (base zero) Trim In Intro Hook In Hook Out Extro Trim Out Current Position Title Artist |
GET CURRENT PLAYER PROGRESS_TIME |
Get the current playing players progress in human time hh:mm:ss |
Current player (base zero) Trim In Intro Hook In Hook Out Extro Trim Out Current Position Title Artist |
GET CURRENT PLAYER TITLE |
Get the title of the current playing player |
Current player (base zero) Title |
GET CURRENT PLAYER ARTIST |
Get the artist of the current playing player | Current player (base zero) Artist |
GET CURRENT PLAYER NOW_PLAYING |
Get the title and artist of the current playing player |
Current player (base zero) Title Artist |
NOTE: You can also send any of the other commands listed here.