mirror of
https://github.com/pion/webrtc.git
synced 2025-10-06 07:37:10 +08:00
Add RTCP Messages
*Avoid a type switch in srtp.go *Add support for transport layer nack and slice loss indication messages *Add String() functions for several RTCP packets to aid in debugging *Add support for transparent profile extensions to ReceiverReport messages Relates to #119
This commit is contained in:

committed by
Woodrow Douglass

parent
0ef6602adb
commit
f62abe50e8
@@ -2,6 +2,7 @@ package rtcp
|
||||
|
||||
import (
|
||||
"encoding/binary"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// The RapidResynchronizationRequest packet informs the encoder about the loss of an undefined amount of coded video data belonging to one or more pictures
|
||||
@@ -76,3 +77,12 @@ func (p *RapidResynchronizationRequest) Header() Header {
|
||||
Length: rrrLength,
|
||||
}
|
||||
}
|
||||
|
||||
// DestinationSSRC returns an array of SSRC values that this packet refers to.
|
||||
func (p *RapidResynchronizationRequest) DestinationSSRC() []uint32 {
|
||||
return []uint32{p.MediaSSRC}
|
||||
}
|
||||
|
||||
func (p *RapidResynchronizationRequest) String() string {
|
||||
return fmt.Sprintf("RapidResynchronizationRequest %x %x", p.SenderSSRC, p.MediaSSRC)
|
||||
}
|
||||
|
Reference in New Issue
Block a user