Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

General request format:

GET http://IP-address:port/web2/secure/video/action.do?version={version}&sessionid={sessionid}&command=audio.play&audio_in={audio_in}&format={format}&login={login}&password={password}

Request parameters:

Parameter

Is required

Description

versionYes

See Product version

sessionidNoSession ID
commandYes

Command to getting live sound: audio.play

formatYesFormat of audio data
audio_inYes

Microphone ID in the format "TYPE:ID", for example "MIC:1"

login NoIntellect username, if set
passwordNoIntellect user password, if set

Example request:

GET http://127.0.0.1:8085.com:[port]/web2/secure/video/action.do?version=4.9.0.0&sessionid=FC126734&command=audio.play&audio_in=MIC:5&format=L16&login=XXXUSER&password=YYYsessionid – session ID (is not in use yet).
audio_in – audio stream ID.
format – format of audio data (only L16 yet).PASS

Example response:

Audio packets of the following view will be received:

Code Block
languagexml
HTTP/1.0 200 OK

...


Connection: close

...


Server: ITV-Intellect-Webserver/4.9.0.0

...


Cache-Control: no-store,no-cache,must-revalidate,max-age=0

...


Pragma: no-cache

...


Date: Mon, 13 Jan 2013 10:44:27 GMT

...


Content-Type: multipart/mixed;boundary=audioframe

...

 

 
--audioframe

...


Content-Type: text/xml

...


Content-Length: 138

...

   

   
<audio_in>

...


  <sessionid>FC126734</sessionid>

...


  <audio_in>MIC:5</audio_in>

...


  <newstate>started</newstate>

...


  <errcode>100</errcode>

...


</audio_in>

...


--audioframe

...


Content-Type: audio/L16;rate=8000;channels=1

...


Content-Length: 1024

...


X-Time: 2013-03-22T13:16:31.371+04:00

...

 

 
<audio packet PCM16>

...


--audioframe

...


Content-Type: audio/L16;rate=8000;channels=1

...


Content-Length: 1278

...


X-Time: 2013-03-22T13:16:31.873+04:00

...


<audio packet PCM16>

...

 

To stop stream without connection break send the following command in the same connection

...