fixed not displaying tc at 0:00:00,000 bug
This commit is contained in:
parent
639d2bb23c
commit
e038b5440d
|
@ -38,6 +38,7 @@
|
|||
}
|
||||
|
||||
function playSubtitles(subtitleElement, opts) {
|
||||
var n,i,o,t;
|
||||
var videoId = opts.id;
|
||||
var srt = subtitleElement.text();
|
||||
subtitleElement.html('');
|
||||
|
@ -58,13 +59,13 @@
|
|||
for(j=3; j<st.length;j++)
|
||||
t += '\n'+st[j];
|
||||
}
|
||||
is = toSeconds(i);
|
||||
is = toSeconds(i) == 0 ? 0.1 : toSeconds(i);
|
||||
os = toSeconds(o);
|
||||
subtitles[is] = {i:i, o: o, t: t};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
var currentSubtitle = -1;
|
||||
|
||||
var ival = setInterval(function() {
|
||||
|
|
1107
sample.srt
1107
sample.srt
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user