sourcey / libsourcey

C++14 evented IO libraries for high performance networking and media based applications
https://sourcey.com/libsourcey
GNU Lesser General Public License v2.1
1.31k stars 347 forks source link

webrtcrecorder only receives mono samples #232

Open cksmith opened 6 years ago

cksmith commented 6 years ago

When I run the webrtcrecorder example I only ever seem to receive mono samples from the browser.

I see the line: 17:19:58 [warn] [streamrecorder.cpp(124)] Dropping initial mono samples over and over.

Any idea what might be going on here? Let me know if you need any other information to debug.

BTW, the latest updates broke the stream recorder. In StreamRecorder::OnData, before initializing the encoder we should check

if (_shouldInit && !_awaitingVideo)

not just _shouldInit. Similarly in StreamRecorder::OnFrame, we should check !_awaitingAudio.