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:
Woodrow Douglass
2018-12-04 09:11:21 -05:00
committed by Woodrow Douglass
parent 0ef6602adb
commit f62abe50e8
14 changed files with 357 additions and 32 deletions

View File

@@ -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)
}