Chromium Code Reviews
DescriptionThis allow connection remote stream to audio tag, and enable users to control the audio via audio tag controller.
Since WebRtcAudioDeviceImpl is not a thread safe class, it can only take commands from VoE, so the output code (including AudioOutputDevice) is broken down into a WebRtcAudioRenderer. This WebRtcAudioRenderer gets calls from 3 threads:
WebRtcAudioDeviceImpl thread for commands: Play(), Pause()
WebMediaPlayer thread for commands: Play(), Pause(), Stop(), SetVolume()
Audio thread: Render() callback.
BUG=142988
TEST=https://webrtc-demos.appspot.com/html/pc1.html, make a call, right click to show the controller, you should be able to control the audio in the second tag.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=164814
Patch Set 1 #Patch Set 2 : added a lock to protect the |renderer_| #
Total comments: 35
Patch Set 3 : addressed Wei's comments and fixed the content_unittest #
Total comments: 1
Patch Set 4 : Changed the Initialize() to bool so WebRtc will know if an error happens #Patch Set 5 : rebased and fixed some comments in rtc_audio_renderer.h #
Total comments: 14
Patch Set 6 : addressed Andrew's comments and fixed some testbots' errors #
Total comments: 4
Patch Set 7 : addressed the nits from Andrew and fixed the chromeOS testbot error #
Total comments: 2
Messages
Total messages: 17 (0 generated)
|