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 5c50ca7 commit 2fd2725Copy full SHA for 2fd2725
packages/xgplayer-mp4/src/mp4.js
@@ -349,7 +349,7 @@ class MP4 extends EventEmitter {
349
let i = 1
350
let find = false
351
this.log('>>>>>getSubRange time,',time, JSON.stringify(range))
352
- if (this.videoTrak) {
+ if (this.videoTrak && this.videoTrak.length > 0) {
353
const videoSeg = fragIndex < this.videoTrak.length ? this.videoTrak[fragIndex] : this.videoTrak[this.videoTrak.length - 1]
354
if (videoSeg.frames.length === 0) {
355
this.log('>>>>>getSubRange video, no frames')
0 commit comments