We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ded1643 commit 9574ec6Copy full SHA for 9574ec6
src/TitanVideo/TitanVideo.js
@@ -171,6 +171,7 @@ function TitanVideo(options) {
171
cueNode.style.color = textColor;
172
cueNode.style.backgroundColor = backgroundColor;
173
cueNode.style.textShadow = '1px 1px 0.1em ' + outlineColor;
174
+ cueNode.style.whiteSpace = 'pre-wrap';
175
176
subtitlesElement.appendChild(cueNode);
177
subtitlesElement.appendChild(document.createElement('br'));
@@ -466,6 +467,7 @@ function TitanVideo(options) {
466
467
}
468
case 'time': {
469
if (stream !== null && propValue !== null && isFinite(propValue)) {
470
+ renderSubtitle('', 'hide');
471
videoElement.currentTime = parseInt(propValue, 10) / 1000;
472
onPropChanged('time');
473
0 commit comments