We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b5eaee commit cf128d6Copy full SHA for cf128d6
dist/danmaku.js
@@ -129,7 +129,9 @@
129
if (cmtt >= ct) {
130
break;
131
}
132
- cmt._utc = dn - (this._hasMedia ? (this.media.currentTime - cmt.time) : 0);
+ if (this._hasMedia) {
133
+ cmt._utc = dn - (this.media.currentTime - cmt.time);
134
+ }
135
cmt.node = cmt.node || createCommentNode(cmt);
136
this.runningList.push(cmt);
137
pendingList.push(cmt);
@@ -265,7 +267,9 @@
265
267
266
268
269
270
271
272
273
cmt.canvas = createCommentCanvas(cmt, this._fontSize);
274
cmt.y = allocate.call(this, cmt);
275
if (cmt.mode === 'top' || cmt.mode === 'bottom') {
0 commit comments