videojs / videojs-contrib-hls

HLS library for video.js
http://videojs.github.io/videojs-contrib-hls/
Other
2.84k stars 791 forks source link

long time m3u8 video cannot play with chrome #1454

Closed mzxjhx closed 5 years ago

mzxjhx commented 5 years ago

Description

I use video.js and videojs-contrib-hls in my project with chrome 68. When the m3u8 media is 156 mins or less, it works fine. But when it get a m3u8 src which is more about 5 hours, it cannot play .I get errors like this:

I follow breakpoints untill "handleSegment_", i find the buffered is undefined and sorry cannot found out where the problem is . in the debug, chrome get the m3u8 src and only a segmet of ts,and exception throw.

_createClass(VirtualSourceBuffer, [{
    key: 'data_',
    value: function data_(event) {
      var segment = event.data.segment;

      // Cast ArrayBuffer to TypedArray
      segment.data = new Uint8Array(segment.data, event.data.byteOffset, event.data.byteLength);

      segment.initSegment = new Uint8Array(segment.initSegment.data, segment.initSegment.byteOffset, segment.initSegment.byteLength);

      (0, _createTextTracksIfNecessary2['default'])(this, this.mediaSource_, segment);

      // Add the segments to the pendingBuffers array
      this.pendingBuffers_.push(segment);
      return;
    }

after segment was push into pendingBuffers_,

this.pendingBuffers_[0].info.height
undefined

I would appreciate itvery much if youwould help me with it ,thanks

Sources

m3u8 media src:http://p2dpjkn9w.bkt.clouddn.com/recordings/z1.qingk.ceshizu0213/1539049680_1539100740.m3u8

Steps to reproduce

Explain in detail the exact steps necessary to reproduce the issue.

1. 2. 3.

Results

Expected

Please describe what you expected to happen that did not happen in the description.

Error output

videojs-contrib-hls: cannot read the sourceBuffer_.buffered properity video.js CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED

Additional Information

Please include any additional information necessary here. Including the following:

videojs-contrib-hls version

what version of videojs-contrib-hls does this occur with? videojs-contrib-hls version 5.14.1

videojs version

what version of videojs does this occur with? Video.js 7.2.2

Browsers

chrome *

Platforms

eclipse *

Other Plugins

are any other videojs plugins being used on the page? If so, please list them with version below. *

Other JavaScript

are you using any other javascript libraries or frameworks on the page? if so please list them below. *