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:
Jonas Köritz 2019-09-20 12:02:16 +02:00
parent a2e812c95d
commit 350f26c89e
2 changed files with 2 additions and 2 deletions

View file

@ -132,7 +132,7 @@ func (s *Server) handleRequest(packet []string, conn net.Conn) {
writeStatus(conn, 200, "OK")
replyCSeq(conn, headers)
writeHeader(conn, "Session", session)
writeHeader(conn, "RTP-Info", "url="+request[1]+";seq=0;rtptime=0")
writeHeader(conn, "RTP-Info", "url="+request[1]+";seq=10;rtptime=10")
conn.Write([]byte("\r\n"))
case "TEARDOWN":
s.rtpRelay.Stop()