How to get the exact timestamp for when a video recording started

This question originally came up in our Slack community and the thread has been consolidated here for long-term reference.

I’m implementing a feature that shows video and transcript together. I need to jump forward in the transcript as the recording progresses.

Is there any way to get an exact timestamp for when the video started (timestamp of the first frame)? Without this, it’s difficult to make relative timestamps to the video.

For track egress (and track composite egress), a JSON file is created as a receipt for each egress, containing started_at and ended_at timestamps.

For HLS recordings, you can use the initial time output in the m3u8 file.