Closed david-hm-morgan closed 3 years ago
I think this is working as intended. From my reading of the TTTML spec, section N.2.2 says that media times (which are the default) should be calculated relative to parent elements. This appears to include clock-time
expressions in addition to the offset-time
expressions.
There is an example in section N.2.3 that shows times being additive. Even though it uses offset-time
, the reading of section N.2.2 seems to imply the relative calculation is done for both.
If your reading of the TTML spec is different, please correct me. Timing in TTML is complicated and I'm not an expert.
@TheModMaker I am also not an expert at interpreting the TTML spec - I've looked again today to try to find evidence to justify my observation. My concern is that this represents a regression from 3.0.x versions.
Closing as working as intended (unless you find something in the spec). This is probably not a regression, but a fix (since it's what the spec says).
Have you read the FAQ and checked for duplicate open issues? Yes
What version of Shaka Player are you using? 3.1.x
Can you reproduce the issue with our latest release version? No
Can you reproduce the issue with the latest code from
master
? yesAre you using the demo app or your own custom app? Yes
If custom app, can you reproduce the issue using our demo app? Yes
What browser and OS are you using? Chrome, Win & Mac
For embedded devices (smart TVs, etc.), what model and firmware version are you using? N/A
What are the manifest and license server URIs?
I cannot share the stream, but here's a snippet of the TTML within exhibiting the issue:
I have turned this into a failing UT which can be found at https://github.com/david-hm-morgan/shaka-player/commit/6212f7c3c21d6db5b58f590384a5b5f4861d25bf
What configuration are you using? What is the output of
player.getConfiguration()
?What did you do?
Play stream, enable captions, wait to see the text within a few seconds.
What did you expect to happen? Subtitles appear synchronized to the voice.
What actually happened?
The subtitles are behind and increasing in their offset from expected position.