DescriptionSet audio format before adding pepper sink to audio track.
Some audio input devices don't generate caputure data in a continuous basis, and
instead only generate when some event happens. This may be an indefinite amount
of time. However, |AudioSink::OnSetFormat| is only called whenever new samples
come in. For pepper plugins, this means that |MediaStreamAudioTrack::Configure|
can be blocked indefintely on these devices. To work around this, get the
format before attaching to the audio track.
BUG=403138
Committed: https://crrev.com/ec4c42f4ef67badad8b5d13190d4630aa31a9188
Cr-Commit-Position: refs/heads/master@{#313458}
Patch Set 1 #Patch Set 2 : Fix tests. #
Total comments: 15
Patch Set 3 : Rebase #Patch Set 4 : Address review comments. #
Total comments: 8
Patch Set 5 : More review comments. #
Total comments: 2
Patch Set 6 : Compile fix. #Messages
Total messages: 22 (5 generated)
|