clear video queue if receive key frame, send key frame with channel
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
1b81d3643c
commit
ede048bbd0
3 changed files with 35 additions and 8 deletions
|
|
@ -1669,7 +1669,7 @@ impl Connection {
|
|||
Some(message::Union::AudioFrame(frame)) => {
|
||||
if !self.disable_audio {
|
||||
if let Some(sender) = &self.audio_sender {
|
||||
allow_err!(sender.send(MediaData::AudioFrame(frame)));
|
||||
allow_err!(sender.send(MediaData::AudioFrame(Box::new(frame))));
|
||||
} else {
|
||||
log::warn!(
|
||||
"Processing audio frame without the voice call audio sender."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue