Skip to content
Snippets Groups Projects
Commit 764c9cb0 authored by Philip-Dylan Gleonec's avatar Philip-Dylan Gleonec Committed by Pierre Lespagnol
Browse files

audio_sender: add setPackerLoss method

Add setPacketLoss method which enable setting a new packet loss
estimation.
This method is based on the model of setBitrate in video_sender.

Issue: #5157
Change-Id: Ib757ce9c241f0b02b8a9a899b3d5a22e898203b3
parent 998791a3
No related branches found
No related tags found
No related merge requests found
......@@ -122,4 +122,15 @@ AudioSender::getLastSeqValue()
return audioEncoder_->getLastSeqValue();
}
int
AudioSender::setPacketLoss(uint64_t pl)
{
// The encoder may be destroy during a bitrate change
// when a codec parameter like auto quality change
if (!audioEncoder_)
return -1; // NOK
return audioEncoder_->setPacketLoss(pl);
}
} // namespace jami
......@@ -48,6 +48,7 @@ public:
void setMuted(bool isMuted);
uint16_t getLastSeqValue();
int setPacketLoss(uint64_t pl);
void update(Observable<std::shared_ptr<jami::MediaFrame>>*,
const std::shared_ptr<jami::MediaFrame>&) override;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment