-
-
Notifications
You must be signed in to change notification settings - Fork 3k
[Update] Expose EXT-X-PROGRAMMING-DATE-TIME / currentPlaybackTime #4546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
- Pass the EXT-X-PROGRAMMING-Date
- Added currentPlaybackTime Property
Hi React Native Video community, We are currently working on live streaming using an HLS playlist, and to display the time correctly alongside the player frame, we need the Currently, inside the
Thanks for your help! Best regards, |
Hey, I see that you have changed types but are you going to implement logic behind it? |
Hi @KrzysztofMoch Thank you for the response.
You can check this method in RCTVideo.swift in iOS. |
Summary
We are currently working on live streaming using an HLS playlist, and to display the time correctly alongside the video player, we need the
#EXT-X-PROGRAM-DATE-TIME
, which corresponds to thecurrentPlaybackTime
in the player.Currently, the
OnProgressData
type does not expose this value, and we're unable to access it via theonProgress
callback. To enable accurate timestamp overlays and real-time data alignment, we are requesting to includecurrentPlaybackTime
in theOnProgressData
.Motivation
In live video streaming — particularly in surveillance, news, and real-time dashboards — displaying accurate timestamps is essential. The HLS playlist provides the
#EXT-X-PROGRAM-DATE-TIME
tag, which maps to the wall-clock time of the segment being played.By exposing
currentPlaybackTime
(which aligns with EXT-X-PROGRAM-DATE-TIME) in theonProgress
event, developers will be able to:Changes
We propose the following enhancement to the
OnProgressData
type: