...
REST-methods and response statuses
REST-method | Example of REST-query | Example of REST response | Response status | Description | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
/pull/pull |
| 409 - Conflict 500 - Internal error | Pull the WebRTC stream at the specified URL | ||||||||
/pull/find_all |
| 200 – streams are found 500 - Internal error | Find all pulled WebRTC streams | ||||||||
/pull/terminate |
| 200 - stream terminated 500 - Internal error | Terminate the pulled WebRTC stream |
Parameters
Parameter name | Description | Example |
---|---|---|
uri | URL of the WebRTC stream | |
localMediaSessionId | Session identifier | 5a072377-73c1-4caf-abd3 |
remoteMediaSessionId | Session identifier on the remote server | 12345678-abcd-dead-beaf |
localStreamName | Local name assigned to the captured stream. By this name the stream can be requested from the WCS server | testStream |
remoteStreamName | Captured stream name on the remote server | testStream |
status | Current stream status | NEW |
Configuration
In the /usr/local/FlashphonerWebCallServer/conf directory you can find the SDP description file for the RTMP agent rtmp_agent.sdp:
...
attribute for the video track.
7. Freezes are possible when RTMP stream is captured from Adobe Media Server with Aggregate messages enabled
Symptoms: freezes can occur, publishing can fail by timeout when capturing RTMP stream from Adobe Media Server
Solution: disable Aggregate messages in AMS configuration
- вall EnableAggMsgs in Server.xml
- Client/AggregateMessages and Queue/AggregateMessages in conf/_defaultRoot_/_defaultVHost/Application.xml
- AggregateMessages in Vhost.xml