Versions Compared

Key

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

...

REST-methods and response statuses

REST-method

Example of REST-query

Example of REST response

Response status

Description

/pull/pull

Code Block
languagejs
themeRDark
{  
   "uri":"rtmp://myserver.com/live/myStream",
   "record": "true"
}

409 - Conflict

500 - Internal error


Pull the WebRTC stream at the specified URL


/pull/find_all


Code Block
languagejs
themeRDark
{
"localMediaSessionId": "5a072377-73c1-4caf-abd3",
"remoteMediaSessionId": null,
"localStreamName": "rtmp://myserver.com/live/myStream",
"remoteStreamName": null,
"uri": "rtmp://myserver.com/live/myStream",
"status": "PROCESSED_REMOTE"
}

200 – streams are found

500 - Internal error

Find all pulled WebRTC streams

/pull/terminate

Code Block
languagejs
themeRDark
{  
   "uri":"rtmp://myserver.com/live/myStream"
}

200 - stream terminated

500 - Internal error

Terminate the pulled WebRTC stream

Parameters

Parameter name

Description

Example

uri

URL of the WebRTC stream

wss://demo.flashphoner.com:8443

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