Need to set reference layer when starting with dummy packets. (#2034)

Dummy packets are used at start to trigger Pion's OnTrack.
This commit is contained in:
Raja Subramanian
2023-09-05 12:00:00 +05:30
committed by GitHub
parent 95edad6aab
commit 1590b96686
3 changed files with 15 additions and 5 deletions
+5 -2
View File
@@ -1786,8 +1786,11 @@ func (d *DownTrack) sendSilentFrameOnMuteForOpus() {
AbsSendTimeExtID: uint8(d.absSendTimeExtID),
TransportWideExtID: uint8(d.transportWideExtID),
WriteStream: d.writeStream,
Metadata: sendPacketMetadata{},
OnSent: d.packetSent,
Metadata: sendPacketMetadata{
// although this is using empty frames, mark as padding as these are used to trigger Pion OnTrack only
isPadding: true,
},
OnSent: d.packetSent,
})
}