Skip to content

Conversation

@richard-smith-preservica
Copy link
Contributor

  • Allow more than 2 digits for extremely long videos
  • Although the spec says it must be 2+ and so single digit times (e.g. 1:02:24.000 --> 1:04:48.000) are invalid, allow these too as it's unambiguous what was intended and easy to handle

Timestamps like this are the cause of a real customer supported issue for us, so while it would be fair to tell them to fix their VTT generation, it would be good to be able to parse and allow them.

- Allow more than 2 digits for extremely long videos
- Although the spec says it must be 2+ and so single digit times (e.g. 1:02:24.000 --> 1:04:48.000) are invalid, allow these too as it's unambiguous what was intended and easy to handle
@joedolson
Copy link
Contributor

Thanks for the PR! Would you be able to re-base this against the develop branch? (See the contributing guidelines)

@richard-smith-preservica richard-smith-preservica changed the base branch from main to develop July 9, 2025 08:24
@richard-smith-preservica
Copy link
Contributor Author

Sorry, my mistake, rebased

@joedolson
Copy link
Contributor

Thank you!

@joedolson
Copy link
Contributor

I'm inclined to go ahead and do this, although I'm still a little on the fence. I read all of the W3C spec conversations about timestamp syntax, and it's not an issue that they ever addressed - but they extensively discussed the issue for milliseconds, and one of the arguments against allowing that spec to be flexible was to discourage support of non-conforming VTT generation tools.

That said, I think you're right that although there is some ambiguity in milliseconds, there isn't any in the hours, and there's really no functional difference between 03 and 3; requiring that filler digit isn't really necessary.

@joedolson joedolson added this to the 4.7 milestone Jul 10, 2025
@joedolson joedolson merged commit d7bd9b6 into ableplayer:develop Jul 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants