mirror of
https://github.com/pion/webrtc.git
synced 2025-10-03 14:26:25 +08:00
@@ -104,7 +104,7 @@ func (r *RTPReceiver) Read(b []byte) (n int, err error) {
|
||||
}
|
||||
|
||||
// ReadRTCP is a convenience method that wraps Read and unmarshals for you
|
||||
func (r *RTPReceiver) ReadRTCP() (rtcp.CompoundPacket, error) {
|
||||
func (r *RTPReceiver) ReadRTCP() (rtcp.Packet, error) {
|
||||
b := make([]byte, receiveMTU)
|
||||
i, err := r.Read(b)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user