X-Player remote control¶
- Table of contents
- X-Player remote control
The module is used for remote control and status indication of X-Player via TCP.
* Indication
* Element on playback (playback progress, countdown)
* Next element (duration)
* Playback status
* Connection status with the controlled player
* Control
* Start next
* Stop of playback
* Settings
* Displayed name
* Enabling of remote control
Creating module in VID file¶
To create the module you have to add the following string in VID file:
CREATE_OBJ_PLAY_X_RMT OBJID_PLAY_X_RMT
OBJID_PLAY_X_RMT - identifier of the module being created
To connect controlled X-Player:
SET_OBJ_BASE OBJID_PLAY_X_RMT SET_OBJ_PLAY_X /HOSTNAME.OBJID_PLAY_X1
OBJID_PLAY_X_RMT - identifier of control module /HOSTNAME.OBJID_PLAY_X1 - address of the controlled module. HOSTNAME - name of the host owning controllable X-Player. If X_Player is placed locally, host name is not indicated.
If X-Player is at the remote host, a connection should be established between both hosts.
Establishing connection between the two hosts¶
Each host should include description of additional modules providing connection and exchange of messages.
Creation of modules is described in the xml file of the special format.
File should be stored in the SYSTEM subfolder.
In order to get it loaded, include the corresponding command in the vid file:
INIT_EVENT_SERVER filename.xml
This command is placed in the end of the vid file. If this command is missing, the event server will be initialized from the xml file which has the same name as the execution module. Content of xml file at the server:
<EVENT_SERVER HOST="HOST_NAME_1"> <CLIENTS> <TCP ADDR="SRV" TYPE="SERVER" IP="127.0.0.1" PORT="8001" /> </CLIENTS> </EVENT_SERVER>
Content of xml file at the client:
<EVENT_SERVER HOST="HOST_NAME_2"> <CLIENTS> <TCP ADDR="SRV" TYPE="CLIENT" IP="127.0.0.1" PORT="8001" /> </CLIENTS> </EVENT_SERVER>
You may use IP address of the server. If both applications reside at the same computer, you may use 127.0.0.1. Port numbers must correspond.