mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-27 12:45:35 +08:00
[fix] use ntp timestamp ms as video rtp timestamp
This commit is contained in:
@@ -149,10 +149,10 @@ int SendDataFrame(PeerPtr *peer_ptr, const char *data, size_t size) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int64_t GetNowTime(PeerPtr *peer_ptr) {
|
||||
int64_t CurrentNtpTimeMs(PeerPtr *peer_ptr) {
|
||||
if (!peer_ptr || !peer_ptr->peer_connection) {
|
||||
LOG_ERROR("Peer connection not created");
|
||||
return -1;
|
||||
}
|
||||
return peer_ptr->peer_connection->CurrentTime();
|
||||
return peer_ptr->peer_connection->CurrentNtpTimeMs();
|
||||
}
|
||||
Reference in New Issue
Block a user