Player Minimization for a Period
Introduction
There are cases when it is necessary to control the player application from another application installed on the same PC. For example, you may need to send a command to the Oohdesk CMS player to minimize temporarily in order to show another application. This feature has been implemented for that purpose.
Data exchange with the player uses the TCP data transmission protocol. This means there is no need to perform GET or POST requests, as a lower-level network data transmission is used.
Sending Data
To send data, you need to implement a TCP client. The client connects to 127.0.0.1:7000 (port is optional). Data must be encoded in UTF-8 before sending. The response after sending data is 1 for success, 0 for failure.
{
"type": 1
}
Minimize Command
{
"type": 2,
"delay": 15,
"pause": true
}
delay — the number of seconds after which the player will restore following minimization
pause — if true, then after minimizing, the player will pause
Examples of TCP data exchange implementations
https://metanit.com/sharp/net/4.1.php - C#
https://gist.github.com/homoluctus/5ee21411dd89cebbb237b51ab56f0a4c - Python