...
SDP parameters replacement allows to rise video streeam published bitrate. To do this, SDP parameter 'a' must be replaced by this template when publishing H264 stream:
Code Block | ||||
---|---|---|---|---|
| ||||
a=fmtp:(.*) (.*) |
...
In this case browser will try to keep bitrate in limits from 3000 to 7000 kbps when publishing a stream.This feature is available in Chrome browser only.
When publishing VP8 stream, SDP parameter 'a' must be replaced by this template
Code Block | ||
---|---|---|
| ||
a=rtpmap:(.*) VP8/90000\r\n |
to
Code Block | ||
---|---|---|
| ||
a=rtpmap:$1 VP8/90000\r\na=fmtp:$1 x-google-min-bitrate=3000;x-google-max-bitrate=7000\r\n |
This feature is available in Chrome browser only.
Bandwidth management
SDP parameters replacement allows to set bandwidth for stream publishhed. To do this, SDP parameter 'c' must be replaced by this template when publishing stream
Code Block | ||
---|---|---|
| ||
c=IN (.*)\r\n |
to
Code Block | ||
---|---|---|
| ||
c=IN $1\r\nb=AS:10000\r\n |
Setting up codecs
When publishing the stream, there is a possibility to eliminate from WebRTC SDP codecs that should not be used to publish the given stream, for example:
...