add client status
This commit is contained in:
parent
250576b340
commit
d064ade9a6
@ -2,7 +2,6 @@ package rtspv2
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"fmt"
|
|
||||||
"math"
|
"math"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@ -42,12 +41,12 @@ func (client *RTSPClient) RTPDemuxer(payloadRAW *[]byte) ([]*av.Packet, bool) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !client.containsPayloadType(payloadType) {
|
if !client.containsPayloadType(payloadType) {
|
||||||
client.Println("skipping RTP packet")
|
client.Println("skipping RTP packet, paytload type: %d ", payloadType)
|
||||||
return nil, false
|
return nil, false
|
||||||
}
|
}
|
||||||
|
|
||||||
client.Println(fmt.Sprintf("padding: %v, extension: %v, csrccnt: %d, sequence number: %d.payload type: %d, timestamp: %d",
|
// client.Println(fmt.Sprintf("padding: %v, extension: %v, csrccnt: %d, sequence number: %d.payload type: %d, timestamp: %d",
|
||||||
padding, extension, CSRCCnt, sequenceNumber, payloadType, timestamp))
|
// padding, extension, CSRCCnt, sequenceNumber, payloadType, timestamp))
|
||||||
client.offset = RTPHeaderSize
|
client.offset = RTPHeaderSize
|
||||||
client.sequenceNumber = sequenceNumber
|
client.sequenceNumber = sequenceNumber
|
||||||
client.timestamp = timestamp
|
client.timestamp = timestamp
|
||||||
|
Loading…
Reference in New Issue
Block a user