/* * Copyright (c) 2020 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree.
*/
// Deactivate RTP stack when both sending and receiving are stopped. // SetSendingStatus(false) triggers the transmission of RTCP BYE // message to remote endpoint. if (!ingress_->IsPlaying() && rtp_rtcp_->Sending()) {
rtp_rtcp_->SetSendingStatus(false);
}
}
bool AudioChannel::StartPlay() { // If decoders have not been set, return false. if (!ingress_->StartPlay()) { returnfalse;
}
// If RTP stack is not sending then start sending as in recv-only mode, RTCP // receiver report is expected. if (!rtp_rtcp_->Sending()) {
rtp_rtcp_->SetSendingStatus(true);
} returntrue;
}
// Deactivate RTP stack only when both sending and receiving are stopped. if (!rtp_rtcp_->SendingMedia() && rtp_rtcp_->Sending()) {
rtp_rtcp_->SetSendingStatus(false);
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.