| NetLinx Programming | |
| ||
|
| |
Command | Description | |
|
| |
GET SESSION INFO | Session information is extracted from the SAP Listener or RTSP depending on | |
This command will retrieve | system configuration. | |
| ||
the selected session details. | Syntax: | |
| SEND_COMMAND <DEV>, 'GET SESSION INFO <num> <Field>' | |
| Variables: | |
| Num = 1 to N where N is the number of current sessions. | |
| Field = TITLE - returns the title of the media | |
| Field = DESC - short description of media | |
| Field = IPADDR - ip address of streaming source | |
| Field = URI - URL to media web pages | |
| Field = CONTACT - Name of responsible party | |
| Field = EMAIL - Email address of owner of stream | |
| Field = PHONE - Phone number of contact | |
| Field = MEDIACNT - Number of streams | |
| Field = MEDIA1 - 1st stream info line | |
| Field = MEDIA2 - 2nd stream info line | |
| Field = MEDIA3 - 3rd stream info line | |
| Field = MEDIA4 = 4th stream info line | |
| Field = MEDIAN = Nth stream info line where N is the number of streams | |
| returned in the MEDIACNT Field. | |
| Example: | |
| SEND_COMMAND DECODER, 'GET SESSION INFO 1 TITLE' | |
| SEND_COMMAND DECODER, 'GET SESSION INFO 2 TITLE' | |
| SEND_COMMAND DECODER, 'GET SESSION INFO 2 MEDIA1' | |
| SEND_COMMAND DECODER, 'GET SESSION INFO 2 MEDIA2' | |
| System response: | |
| SESSION INFO 1 TITLE=TERMINATOR | |
| SESSION INFO 2 TITLE=BAMBI | |
| SESSION INFO 2 | |
| SESSION INFO 2 | |
|
| |
GET SESSION LIST | The session list can be populated by SAP or RTSP. If the system is configured | |
Updates the session list and | for SAP then the number sessions available will range from 0 to N. If the sys- | |
tem is configured for RTSP then the number of sessions available will range | ||
return the number of sessions | ||
available. | from 0 to 1. | |
Syntax: | ||
| ||
| SEND_COMMAND <DEV>, 'GET SESSION LIST' | |
| Example: | |
| SEND_COMMAND DECODER, 'GET SESSION LIST' | |
| System response: | |
| SESSION LIST=16 | |
|
| |
GET STREAM STATUS | The system will either return 'IDLE' or 'STREAMING' | |
Returns the stream status. | Syntax: | |
| SEND_COMMAND <DEV>, 'GET STREAM STATUS' | |
| Example: | |
| SEND_COMMAND DECODER, 'GET STREAM STATUS' | |
| System response: | |
| STREAM STATUS=STREAMING | |
|
|
85 | |
|
|