Documentation for Axxon PSIM 1.0.0-1.0.1.

Previous page Sound  Stop streaming live sound Next page


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 NoAxxon PSIM username, if set
passwordNoAxxon PSIM user password, if set

Request example:

GET http://127.0.0.1:8085/web2/secure/video/action.do?version=1.0.1.224&sessionid=FC126734&command=audio.play&audio_in=MIC:5&format=L16&login=USER&password=PASS

Response example:

Audio packets of the following view will be received:

HTTP/1.0 200 OK
Connection: close
Server: AxxonSoft-PSIM-Webserver/1.0.1.224
Cache-Control: no-store,no-cache,must-revalidate,max-age=0
Pragma: no-cache
Date: Mon, 13 Jan 2023 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: 2023-03-22T13:16:31.371+04:00
 
<audio packet PCM16>
--audioframe
Content-Type: audio/L16;rate=8000;channels=1
Content-Length: 1278
X-Time: 2023-03-22T13:16:31.873+04:00
<audio packet PCM16>

  • No labels