RESOLVED FIXED210180
Introduce a RealtimeMediaSource observer dedicated to receiving audio samples
https://bugs.webkit.org/show_bug.cgi?id=210180
Summary Introduce a RealtimeMediaSource observer dedicated to receiving audio samples
youenn fablet
Reported 2020-04-08 03:42:17 PDT
Introduce a RealtimeMediaSource observer dedicated to receiving audio samples
Attachments
Patch (64.92 KB, patch)
2020-04-08 04:09 PDT, youenn fablet
no flags
Patch (68.13 KB, patch)
2020-04-08 04:55 PDT, youenn fablet
no flags
Patch for landing (68.12 KB, patch)
2020-04-09 08:25 PDT, youenn fablet
no flags
Patch for landing (68.98 KB, patch)
2020-04-09 09:24 PDT, youenn fablet
no flags
Patch for landing (69.27 KB, patch)
2020-04-09 23:49 PDT, youenn fablet
no flags
youenn fablet
Comment 1 2020-04-08 04:09:30 PDT
youenn fablet
Comment 2 2020-04-08 04:55:34 PDT
EWS
Comment 3 2020-04-08 08:37:52 PDT
ChangeLog entry in Source/WebCore/ChangeLog contains OOPS!.
Eric Carlson
Comment 4 2020-04-08 10:11:31 PDT
Comment on attachment 395792 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=395792&action=review > Source/WebCore/Modules/mediarecorder/MediaRecorder.h:41 > +typedef std::unique_ptr<MediaRecorderPrivate>(*creatorFunction)(MediaStreamPrivate&); Nit: could change to "using" > Source/WebCore/platform/mediastream/AudioTrackPrivateMediaStream.cpp:126 > + if (!m_shouldPlay || m_muted || streamTrack().muted() || streamTrack().ended() || !streamTrack().enabled()) { > + stopRenderer(); > return; Might as well stop the renderer when the volume is set to 0 too. > Source/WebCore/platform/mediastream/RealtimeOutgoingAudioSource.h:125 > + void audioSamplesAvailable(const MediaTime&, const PlatformAudioData&, const AudioStreamDescription&, size_t) override { }; As we discussed, it may be possible to remove this.
youenn fablet
Comment 5 2020-04-09 08:19:11 PDT
(In reply to Eric Carlson from comment #4) > Comment on attachment 395792 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=395792&action=review > > > Source/WebCore/Modules/mediarecorder/MediaRecorder.h:41 > > +typedef std::unique_ptr<MediaRecorderPrivate>(*creatorFunction)(MediaStreamPrivate&); > > Nit: could change to "using" OK. > > Source/WebCore/platform/mediastream/AudioTrackPrivateMediaStream.cpp:126 > > + if (!m_shouldPlay || m_muted || streamTrack().muted() || streamTrack().ended() || !streamTrack().enabled()) { > > + stopRenderer(); > > return; > > Might as well stop the renderer when the volume is set to 0 too. Right, will add a call to updateRenderer ion setVolume. > > Source/WebCore/platform/mediastream/RealtimeOutgoingAudioSource.h:125 > > + void audioSamplesAvailable(const MediaTime&, const PlatformAudioData&, const AudioStreamDescription&, size_t) override { }; > > As we discussed, it may be possible to remove this. OK
youenn fablet
Comment 6 2020-04-09 08:25:18 PDT
Created attachment 395953 [details] Patch for landing
youenn fablet
Comment 7 2020-04-09 09:24:52 PDT
Created attachment 395961 [details] Patch for landing
EWS
Comment 8 2020-04-09 12:44:27 PDT
Committed r259816: <https://trac.webkit.org/changeset/259816> All reviewed patches have been landed. Closing bug and clearing flags on attachment 395961 [details].
Radar WebKit Bug Importer
Comment 9 2020-04-09 12:45:14 PDT
Jacob Uphoff
Comment 10 2020-04-09 13:49:15 PDT
Reverted r259816 for reason: This commit broke the webkit build for macOS and iOS Committed r259824: <https://trac.webkit.org/changeset/259824>
youenn fablet
Comment 11 2020-04-09 23:49:00 PDT
Created attachment 396052 [details] Patch for landing
EWS
Comment 12 2020-04-10 03:58:46 PDT
Committed r259861: <https://trac.webkit.org/changeset/259861> All reviewed patches have been landed. Closing bug and clearing flags on attachment 396052 [details].
Note You need to log in before you can comment on or make changes to this bug.