Calculate elapsed time as multiple of 90ms, don't start RTSP on seq 0 and rtptime 0 (possible fix for VLC issues)
This commit is contained in:
parent
a2e812c95d
commit
350f26c89e
2 changed files with 2 additions and 2 deletions
|
|
@ -104,7 +104,7 @@ func handleCameraStream(relay RTPRelay, conn net.PacketConn) {
|
|||
packetBuffer.Reset()
|
||||
packetBuffer.Write([]byte{0x80, 0x63})
|
||||
binary.Write(&packetBuffer, binary.BigEndian, sequenceNumber+1)
|
||||
binary.Write(&packetBuffer, binary.BigEndian, (uint32)(elapsed))
|
||||
binary.Write(&packetBuffer, binary.BigEndian, (uint32)(elapsed)*90)
|
||||
binary.Write(&packetBuffer, binary.BigEndian, (uint64(0)))
|
||||
|
||||
// Reset the Framebuffer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue