mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 04:35:34 +08:00
[fix] fix video frame capture timestamp
This commit is contained in:
@@ -38,7 +38,7 @@ class PacketSenderImp : public PacketSender,
|
||||
int Send() { return 0; }
|
||||
|
||||
int EnqueueRtpPacket(std::vector<std::unique_ptr<RtpPacket>>& rtp_packets,
|
||||
int64_t capture_timestamp_ms);
|
||||
int64_t capture_timestamp_us);
|
||||
|
||||
void SetOnSentPacketFunc(
|
||||
std::function<void(const webrtc::RtpPacketToSend&)> on_sent_packet_func) {
|
||||
@@ -61,12 +61,6 @@ class PacketSenderImp : public PacketSender,
|
||||
|
||||
packet->UpdateSequenceNumber(ssrc_seq_[packet->Ssrc()]++);
|
||||
|
||||
webrtc::Timestamp now = clock_->CurrentTime();
|
||||
webrtc::TimeDelta interval = now - last_send_time_;
|
||||
webrtc::TimeDelta delay = now - packet->capture_time();
|
||||
LOG_WARN("interval: {}, delay: {}", interval.ms(), delay.seconds());
|
||||
last_send_time_ = now;
|
||||
|
||||
on_sent_packet_func_(*packet);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user