Changeset 260813 in webkit


Ignore:
Timestamp:
Apr 28, 2020 2:57:41 AM (4 years ago)
Author:
youenn@apple.com
Message:

Ensure remote track event gets unmuted after the track event is fired
https://bugs.webkit.org/show_bug.cgi?id=211071

Reviewed by Alex Christensen.

This code was made obsolete by the setMuted(false) call done just after firing the track event.
Given the setMuted(false) in addPendingTrackEvent was done asynchronously and was triggering firing the muted event asynchronously,
this change should not be observable from JS.

  • Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp:

(WebCore::LibWebRTCMediaEndpoint::addPendingTrackEvent):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r260812 r260813  
     12020-04-28  Youenn Fablet  <youenn@apple.com>
     2
     3        Ensure remote track event gets unmuted after the track event is fired
     4        https://bugs.webkit.org/show_bug.cgi?id=211071
     5
     6        Reviewed by Alex Christensen.
     7
     8        This code was made obsolete by the setMuted(false) call done just after firing the track event.
     9        Given the setMuted(false) in addPendingTrackEvent was done asynchronously and was triggering firing the muted event asynchronously,
     10        this change should not be observable from JS.
     11
     12        * Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp:
     13        (WebCore::LibWebRTCMediaEndpoint::addPendingTrackEvent):
     14
    1152020-04-28  Rob Buis  <rbuis@igalia.com>
    216
  • trunk/Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp

    r260379 r260813  
    369369
    370370    m_peerConnectionBackend.addPendingTrackEvent({ WTFMove(receiver), makeRef(track), WTFMove(streams), WTFMove(transceiver) });
    371 
    372     // FIXME: We should unmute tracks when receiving the first packet, for now we simulate this by unmuting asynchronously here.
    373     callOnMainThread([source = makeRef(track.source())] {
    374         source->setMuted(false);
    375     });
    376371}
    377372
Note: See TracChangeset for help on using the changeset viewer.