Is it possible to buffer the video/audio in WebRTC (of course, having then a delay on the other side) to improve the quality?
Asked
Active
Viewed 4,261 times
2 Answers
1
WebRtc does buffering automatically when it is necessary. You don't have to think about it.

Andrey Kon
- 747
- 2
- 6
- 16
-
I know that WebRTC does buffering, but how can you control it? Usually there's a trade-off between delay and quality. How can I control this? I suspect that a longer buffer will improve quality, but then a longer delay will be introduced. – Adrian Ber Oct 16 '15 at 08:27
-
WebRTC makes the best decision for you. – Andrey Kon Oct 16 '15 at 09:39
-
@AdrianBer how exactly would a longer buffer improve quality? – mido Oct 26 '15 at 07:49
-
Buffer will improve as any cache will. Of course a very long buffer will not improve things. – Adrian Ber Oct 27 '15 at 09:03
-
@AndreyKon, there is actually a way to do this. I'll post an answer on this. – Adrian Ber Oct 27 '15 at 09:07
1
There's no exact way to fully control this, but there are some settings in the Opus codec that can influence it, like, minptime, ptime, maxptime. Please check https://datatracker.ietf.org/doc/html/draft-spittka-payload-rtp-opus-03#page-12 for more info.

Community
- 1
- 1

Adrian Ber
- 20,474
- 12
- 67
- 117