NetLinx Programming
Command | Description |
|
|
GET VIDEO | Requests the current configuration of the video system. The returned |
Get a description of the | information includes: codec, resolution and stream bit rate. |
| |
current video codec configu- | Syntax: |
ration. | SEND_COMMAND <DEV>,"'GET VIDEO'" |
| |
| Variables: |
| codec = MPEG2 or MPEG4. |
| resolution = D1, or SIF, or <width>X<height> (up to a D1 resolution). |
| stream bit rate = current input bits per second. |
| Example: |
| SEND_COMMAND DECODER,"'GET VIDEO'" |
| System response: |
| VIDEO=MPEG2 D1 3111160 |
| Indicates that the video codec is configured to use an |
| D1 resolution and is currently receiving the stream at 3111160 bits per second. |
|
|
PLAY | Starts the playback of the audio and video based on current configuration. |
Start playing the content of | The playback can also be started via the |
the audio and video stream. | Syntax: |
| SEND_COMMAND <DEV>,"'PLAY'" |
| Example: |
| SEND_COMMAND DECODER,"'PLAY'" |
|
|
SET AUDIO | Configure the audio codec. |
Set the configuration | Note: Setting the audio configuration during the 'play' state has undefined |
parameters for the audio | results. |
system. | Syntax: |
| |
| SEND_COMMAND <DEV>,"'SET AUDIO <codec>'" |
| Variables: |
| codec = AAC, or MP3. |
| Example: |
| SEND_COMMAND DECODER,"'SET AUDIO AAC'" |
| Sets the audio configuration to use an MPEG2 AAC audio codec. |
|
|
SET CONTROL MODE | Configures the method of how the decoder finds a stream. |
Set the stream control mode | Syntax: |
method. | SEND_COMMAND <DEV>,"'SET CONTROL MODE <method>'" |
| |
| Variables: |
| method = MANUAL, RTSP, or SAP |
| Example: |
| SEND_COMMAND DECODER,"'SET CONTROL MODE SAP'" |
| Instructs the |
| information. |
|
|
SET FORMAT | Syntax: |
Set the video format of the | SEND_COMMAND <DEV>,"'SET FORMAT <format>'" |
outgoing video signal. | Variable: |
| |
| format = NTSC or PAL. |
| Example: |
| SEND_COMMAND DECODER,"'SET FORMAT NTSC'" |
| Instructs the |
| signal. |
|
|
92 |