AMX MAX-CSEStreaming Send_Commands Cont, NetLinx Programming, Description, Get Session Info

Models: MAX-CSD 10 MAX-CSE

1 110
Download 110 pages 20.97 Kb
Page 84
Image 84
GET SESSION INFO

NetLinx Programming

MAX-CSE Streaming Send_Commands (Cont.)

Command

Description

 

 

GET SESSION INFO

Session information is extracted from the SAP Listener or RTSP depending on

Retrieves the selected ses-

system configuration.

 

sion 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 ENCODER, 'GET SESSION INFO 1 NAME'

 

SEND_COMMAND ENCODER, 'GET SESSION INFO 2 NAME'

 

SEND_COMMAND ENCODER, 'GET SESSION INFO 2 MEDIA1'

 

SEND_COMMAND ENCODER, 'GET SESSION INFO 2 MEDIA2'

 

System response:

 

SESSION INFO 1 NAME=TERMINATOR

 

SESSION INFO 2 NAME=BAMBI

 

SESSION INFO 2 MEDIA1=MPEG4-VIDEO

 

SESSION INFO 2 MEDIA2=AAC-AUDIO

 

 

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 ENCODER, '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 ENCODER, 'GET STREAM STATUS'

 

System response:

 

STREAM STATUS=STREAMING

 

 

78

MAX-CSE/MAX-CSD10 Operation/Reference Guide

Page 84
Image 84
AMX manual MAX-CSEStreaming Send_Commands Cont, NetLinx Programming, Description, Get Session Info, Get Session List