RESOLVED FIXED168118
[WebRTC] Implement Outgoing libwebrtc audio source support
https://bugs.webkit.org/show_bug.cgi?id=168118
Summary [WebRTC] Implement Outgoing libwebrtc audio source support
youenn fablet
Reported 2017-02-10 08:31:20 PST
[WebRTC] Implement Outgoing LibWebRTCNetwork audio source support
Attachments
Patch (12.98 KB, patch)
2017-02-10 09:29 PST, youenn fablet
no flags
Patch (13.11 KB, patch)
2017-02-10 10:14 PST, youenn fablet
no flags
Patch (16.24 KB, patch)
2017-02-10 10:52 PST, youenn fablet
no flags
Patch for landing (16.14 KB, patch)
2017-02-10 12:58 PST, youenn fablet
no flags
youenn fablet
Comment 1 2017-02-10 09:29:15 PST
youenn fablet
Comment 2 2017-02-10 10:14:15 PST
youenn fablet
Comment 3 2017-02-10 10:52:21 PST
youenn fablet
Comment 4 2017-02-10 10:55:12 PST
The story about muted/disabled tracks is not clear to me yet. Should we continue being called by the capture thread? Should we be notified and stop filling the ring buffer? Or should we just not send any data to libwebrtc?
Eric Carlson
Comment 5 2017-02-10 12:37:49 PST
Comment on attachment 301176 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=301176&action=review > Source/WebCore/ChangeLog:10 > + Using an AudioSampleDataSource to convert the captured data in libwebrtc expected format. Nit: "in" -> "to" > Source/WebCore/ChangeLog:14 > + Introducing bWebRTCAudioFormat.h to centrialise libwbebrtc expected audio format. Nit: "bWebRTCAudioFormat.h" -> "WebRTCAudioFormat.h" > Source/WebCore/platform/audio/mac/AudioSampleDataSource.cpp:289 > +bool AudioSampleDataSource::pullAvalaibleSamplesAsChunks(AudioBufferList& buffer, size_t sampleCountPerChunk, uint64_t timeStamp, Function<void()>&& bufferIsFilled) Nit: "bufferIsFilled" reads like it should be a bool, something like "consumeSamples", or "processSamples" might be better. > Source/WebCore/platform/mediastream/mac/RealtimeOutgoingAudioSource.h:70 > + void audioSamplesAvailable(const MediaTime&, const PlatformAudioData&, const AudioStreamDescription&, size_t) final; Nit: extra space.
youenn fablet
Comment 6 2017-02-10 12:58:04 PST
Created attachment 301195 [details] Patch for landing
WebKit Commit Bot
Comment 7 2017-02-10 13:31:07 PST
Comment on attachment 301195 [details] Patch for landing Clearing flags on attachment: 301195 Committed r212144: <http://trac.webkit.org/changeset/212144>
WebKit Commit Bot
Comment 8 2017-02-10 13:31:11 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.