diff --git a/wp-hyperaudio/js/caption.js b/wp-hyperaudio/js/caption.js index dd69767..e147af7 100644 --- a/wp-hyperaudio/js/caption.js +++ b/wp-hyperaudio/js/caption.js @@ -168,6 +168,10 @@ var caption = (function () { if (firstLine === true) { + if (lastOutTime === undefined) { + lastOutTime = wordMeta.start + wordMeta.duration; + } + thisCaption = new captionMeta(formatSeconds(lastInTime), formatSeconds(lastOutTime), ""); thisCaption.text += lineText + "\n";