frpc
This commit is contained in:
parent
ce7b5d8ee5
commit
993c1c01a2
@ -2,6 +2,7 @@ package rtspv2
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
|
"fmt"
|
||||||
"math"
|
"math"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@ -348,7 +349,14 @@ func (client *RTSPClient) appendPlaybackVideoPacket(retmap []*av.Packet, nal []b
|
|||||||
|
|
||||||
prePkt[i].RealTimestamp = client.preKeyRealVideoTs*1000 + client.iterateDruation.Milliseconds()
|
prePkt[i].RealTimestamp = client.preKeyRealVideoTs*1000 + client.iterateDruation.Milliseconds()
|
||||||
client.preRealVideoMs = prePkt[i].RealTimestamp
|
client.preRealVideoMs = prePkt[i].RealTimestamp
|
||||||
// fmt.Println("playback duration", prePkt[i].IsKeyFrame, prePkt[i].RealTs, client.preRealVideoMs, prePkt[i].Duration, client.iterateDruation)
|
fmt.Println("playback duration",
|
||||||
|
prePkt[i].IsKeyFrame,
|
||||||
|
prePkt[i].Time.Milliseconds(),
|
||||||
|
curPkt.Time.Milliseconds(),
|
||||||
|
prePkt[i].RealTs,
|
||||||
|
prePkt[i].RealTimestamp,
|
||||||
|
prePkt[i].Duration,
|
||||||
|
client.iterateDruation)
|
||||||
}
|
}
|
||||||
return prePkt
|
return prePkt
|
||||||
}
|
}
|
||||||
@ -381,7 +389,7 @@ func (client *RTSPClient) appendLiveViewVideoPacket(retmap []*av.Packet, nal []b
|
|||||||
}
|
}
|
||||||
client.PreDuration = prePkt[i].Duration
|
client.PreDuration = prePkt[i].Duration
|
||||||
}
|
}
|
||||||
// fmt.Println("liveview duration", prePkt[i].IsKeyFrame, prePkt[i].Time.Milliseconds(), prePkt[i].Duration)
|
fmt.Println("liveview duration", prePkt[i].IsKeyFrame, prePkt[i].Time.Milliseconds(), prePkt[i].Duration)
|
||||||
|
|
||||||
}
|
}
|
||||||
return prePkt
|
return prePkt
|
||||||
|
Loading…
Reference in New Issue
Block a user