-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(VTT): Fix timing of VTT in HLS without map header
When there is no X-TIMESTAMP-MAP header, the HLS spec states that the client should map 0 to 0, effectively. That means we were wrong to offset the cues by the segment time. Since DASH IOP states that segmented text should be packaged in MP4, this should not affect compliant DASH content. Closes #2714 Change-Id: Iddb00f2fd1afeb4f0f2c99f92f65e5db0e3a84f1
- Loading branch information
1 parent
34a20d0
commit 4bf22e2
Showing
3 changed files
with
9 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,9 @@ shaka.text.VttTextParser = class { | |
shaka.util.Error.Code.INVALID_TEXT_HEADER); | ||
} | ||
|
||
let offset = time.segmentStart; | ||
// NOTE: "periodStart" is the timestamp offset applied via TextEngine. | ||
// It is no longer closely tied to periods, but the name stuck around. | ||
let offset = time.periodStart; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
joeyparrish
Author
Member
|
||
|
||
if (blocks[0].includes('X-TIMESTAMP-MAP')) { | ||
// https://bit.ly/2K92l7y | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hi @joeyparrish I'm checking that changed and i'm a bit worried aboutit, it will impact also DASH, also in the DASH IOP, we have well the possibility to have subtitle as text. Let me know if i'm not understanding it correctly, I think it's link to my cc issue and in fact affect dash