-
Notifications
You must be signed in to change notification settings - Fork 30
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
Why TextTrackCue's endTime is Inifnity On Safari? #513
Comments
This is likely an implementation detail after VTTCue was updated to allow endTime to be This seems to be the case for me in my test stream. I can see cues start with |
Thank you for your response. |
I would recommend adjusting your code to work with endTime being Infinity rather than adjusting the captions to try and avoid this. |
Is that possible? Isn't the endTime of the captions handled and returned in Safari's browser code? I'm sorry, but could you give an example, please? |
WebKit uses the AVPlayerItemLegibleOutput API to get cues from an in-band text track (a text track in a media file). A quirk of this API is that the client is called with the cue data and its start time, but not the end time. A cue's end time is implied by the delivery of the next cue or empty sample. WebKit gives the cue an end time of |
Should this be reflected in the spec? |
While |
When playing HLS live content in Safari, the subtitles continue to be displayed and are not disappearing. When checking the activeCues through the Web API textTracks, it was found that some cues have an endTime of Infinity. When playing the same live content in Chrome, the issue does not occur. What is the reason for assigning the value of Infinity to endTime when processing the received startTime and endTime of the subtitles from the server in Safari? The first screenshot shows the data received from the server, and the second screenshot shows the data obtained through the textTracks API. The server continuously sends time data, but Safari is not able to process it properly. What could be the reason for this?
(https://user-images.githubusercontent.com/116650048/232930905-c284406e-67aa-464d-92e5-69f16b41e6f1.png)
(https://user-images.githubusercontent.com/116650048/232930936-d3d6264a-86d3-4892-953f-4e082f803f21.png)
The text was updated successfully, but these errors were encountered: