...
Since build 5.2.724 it is possible to set the name to publish stream on server using localStreamName
query parameter. If the parameter is not set, the stream name will be set to uri, as done in previous builds.
RTMP stream repeatedly capturing with the same URI
/pull/rtmp/pull query returns 409 Conflict while trying to repeatedly capture RTMP stream with the same URI. If the stream is already published on the server, it is necessary to subscribe to it.
Configuration
In the /usr/local/FlashphonerWebCallServer/conf directory you can find the SDP description file for the RTMP agent rtmp_agent.sdp:
...
Below is the call flow when capturing an RTMP stream from another server
Authentication on a source server
WCS supports Adobe authentication on RTMP server while capturing a stream from it using RTMP URL parameters:
Code Block | ||
---|---|---|
| ||
rtmp://username:password@server:1935/live/streamKey |
Note that if an RTMP stream is requested from another WCS server, this kind of authentication is not supported.
Since build 5.2.1069 it is possible to pass authentication parameters after stream name
Code Block | ||
---|---|---|
| ||
rtmp://server:1935/live/streamKey?user=username&password=password |
In this case the parameters will be passed to RTMP server in connect
message.
The parameters can be set after application name too
Code Block | ||
---|---|---|
| ||
rtmp://server:1935/live?user=username&password=password/streamKey |
In this case the parameters will also be passed to RTMP server in connect
message. If the stream is requested from another WCS server via RTMP, authentication parameters will be available in REST hook /connect.
Known issues
Excerpt | |||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1. A stream containing B-frames does not play or plays with artifacts (latencies, lags) Symptoms:
Solution
2. AAC frames of type 0 are not supported by decoder and will be ignored while stream pulled playback In this case, warnings will be displayed in the client log:
Solution: use Fraunhofer AAC codec with the following parameter in flashphoner.properties file
3. When publishing and then playing and recording H264 + AAC stream video may be out of sync with sound, or no sound at all. Symptoms: when playing H264 + AAC stream published on server, and when recordingsuch stream, sound is out of sync with video or absent Solution: a) set the following parameter in flashphoner.properties file
This parameter also turns off AAC frames dropping. b) use Fraunhofer AAC codec
4. Sound may be distorted or absent when resampled to 11025 Hz Symptoms: when H264 + AAC stream published on WCS server is played with AAC sample rate 11025 Hz, sound is distorted or absent Solution: do not use 11025 Hz sample rate, or escape AAC sound resampling to this rate, for example, do not set this sample rate in SDP settings. |
...