Skip to content

Commit

Permalink
Smooth Streaming Support :
Browse files Browse the repository at this point in the history
- Update comment
  • Loading branch information
jeremco committed Apr 24, 2017
1 parent 58f18ba commit 94ae30d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/streaming/text/TextSourceBuffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ function TextSourceBuffer() {
subOffset += sample.subSizes[j];
}
try {
// check if we must apply an offset to ttml time
// Only used for Miscrosoft Smooth Streaming support - caption time is relative to sample time. In this case, we apply an offset.
let manifest = manifestModel.getValue();
let offsetTime = manifest.ttmlTimeIsRelative ? sampleStart / timescale : 0;
result = parser.parse(ccContent, sampleStart / timescale, (sampleStart + sample.duration) / timescale, images, offsetTime);
Expand Down

0 comments on commit 94ae30d

Please sign in to comment.