Reland "Remame VideoSendStream::UpdateActiveSimulcastLayers to StartPerRtpStream"
This reverts commit 75170be4acc90fece7c65f1a5b9bef03a5cc3880. Reason for revert: Perf regression not affecting open source. Original change's description: > Revert "Remame VideoSendStream::UpdateActiveSimulcastLayers to StartPerRtpStream" > > This reverts commit d8c4de71722c9de38f942932be21d4015f32a3bc. > > Reason for revert: Tentative revert due to possible perf regression. b/260123362 > > Original change's description: > > Remame VideoSendStream::UpdateActiveSimulcastLayers to StartPerRtpStream > > > > VideoSendStreamImpl::Start and VideoSendStream::Start are not used by PeerConnections, only StartPerRtpStream. > > Therefore this cl: > > - Change implementation of VideoSendStream::Start to use VideoSendStream::StartPerRtpStream. VideoSendstream::Start is kept for convenience. > > - Remove VideoSendStreamImpl::Start() since it was only used by tests that use call and is confusing. > > - RtpVideoSender::SetActive is removed/changed to RtpVideoSender::Stop(). For normal operations RtpVideoSender::SetActiveModules is used. > > > > Bug: none > > Change-Id: I43b153250b07c02fe63c84e3c4cec18d4ec0d47a > > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/283660 > > Reviewed-by: Erik Språng <sprang@webrtc.org> > > Commit-Queue: Per Kjellander <perkj@webrtc.org> > > Cr-Commit-Position: refs/heads/main@{#38698} > > Bug: none > Change-Id: I4f0d27679e51361b9ec54d2ae8e4d972527875d1 > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/284940 > Reviewed-by: Per Kjellander <perkj@webrtc.org> > Commit-Queue: Erik Språng <sprang@webrtc.org> > Auto-Submit: Per Kjellander <perkj@webrtc.org> > Bot-Commit: rubber-stamper@appspot.gserviceaccount.com <rubber-stamper@appspot.gserviceaccount.com> > Reviewed-by: Erik Språng <sprang@webrtc.org> > Cr-Commit-Position: refs/heads/main@{#38725} Bug: b/260400659 Change-Id: Ie8e545edcad85284a7d612183a8e4201672d0b5e Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/285900 Auto-Submit: Per Kjellander <perkj@webrtc.org> Reviewed-by: Erik Språng <sprang@webrtc.org> Commit-Queue: Erik Språng <sprang@webrtc.org> Bot-Commit: rubber-stamper@appspot.gserviceaccount.com <rubber-stamper@appspot.gserviceaccount.com> Cr-Commit-Position: refs/heads/main@{#38794}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
3fcd49e972
commit
59ade0172f
@ -31,12 +31,12 @@ struct FecProtectionParams;
|
||||
class RtpVideoSenderInterface : public EncodedImageCallback,
|
||||
public FecControllerOverride {
|
||||
public:
|
||||
// RtpVideoSender will only route packets if being active, all
|
||||
// packets will be dropped otherwise.
|
||||
virtual void SetActive(bool active) = 0;
|
||||
// Sets the sending status of the rtp modules and appropriately sets the
|
||||
// RtpVideoSender to active if any rtp modules are active.
|
||||
virtual void SetActiveModules(std::vector<bool> active_modules) = 0;
|
||||
// A module will only send packet if beeing active.
|
||||
virtual void SetActiveModules(const std::vector<bool>& active_modules) = 0;
|
||||
// Set the sending status of all rtp modules to inactive.
|
||||
virtual void Stop() = 0;
|
||||
virtual bool IsActive() = 0;
|
||||
|
||||
virtual void OnNetworkAvailability(bool network_available) = 0;
|
||||
|
||||
Reference in New Issue
Block a user