Reputation: 373
I am streaming video from gstreamer to the rtsp, convert it to the webrtc and show the video in the website. I need to know what is the time from the beginning of the stream to synchronize with some additional metadata.
When I connect to the stream 10 seconds after the streaming started for example, I need to know that the delay between start and my delay is exactly 10 seconds.
How can I get such information?
Upvotes: 1
Views: 926
Reputation: 4242
You have two choices.
Insertable Streams and insert metadata with each frame. I would use a identity
element and modify in the handoff
.
requestVideoFrameCallback this allows you to get exact timing information. presentationTime
is probably what you want, but other values might be useful.
Upvotes: 1