Skip to content

Commit 9574ec6

Browse files
committed
Few Subs Fixes
1 parent ded1643 commit 9574ec6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/TitanVideo/TitanVideo.js

+2
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ function TitanVideo(options) {
171171
cueNode.style.color = textColor;
172172
cueNode.style.backgroundColor = backgroundColor;
173173
cueNode.style.textShadow = '1px 1px 0.1em ' + outlineColor;
174+
cueNode.style.whiteSpace = 'pre-wrap';
174175

175176
subtitlesElement.appendChild(cueNode);
176177
subtitlesElement.appendChild(document.createElement('br'));
@@ -466,6 +467,7 @@ function TitanVideo(options) {
466467
}
467468
case 'time': {
468469
if (stream !== null && propValue !== null && isFinite(propValue)) {
470+
renderSubtitle('', 'hide');
469471
videoElement.currentTime = parseInt(propValue, 10) / 1000;
470472
onPropChanged('time');
471473
}

0 commit comments

Comments
 (0)