xgplayer-streaming-shared
Advanced tools
Comparing version 3.0.0-alpha.5-11 to 3.0.0-alpha.5-12
@@ -369,3 +369,3 @@ import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator'; | ||
endTime = Date.now(); | ||
_context3.next = 13; | ||
_context3.next = 16; | ||
break; | ||
@@ -376,8 +376,22 @@ | ||
_context3.t0 = _context3["catch"](1); | ||
// request aborted | ||
endTime = Date.now(); //onProgress(undefined, false, { range: [this._range[0] + this._receivedLength, this._range[0] + this._receivedLength], vid: this._vid, index: this._index, startTime, endTime }, response) | ||
throw new NetError(response.url, '', response, 'bad reader.read'); | ||
if (!_this2._aborted) { | ||
_context3.next = 14; | ||
break; | ||
} | ||
case 13: | ||
return _context3.abrupt("return"); | ||
case 14: | ||
onProgress(undefined, false, { | ||
range: [_this2._range[0] + _this2._receivedLength, _this2._range[0] + _this2._receivedLength], | ||
vid: _this2._vid, | ||
index: _this2._index, | ||
startTime: startTime, | ||
endTime: endTime, | ||
err: _context3.t0 | ||
}, response); | ||
return _context3.abrupt("return"); | ||
case 16: | ||
startByte = _this2._range[0] + _this2._receivedLength; | ||
@@ -387,9 +401,16 @@ _this2._receivedLength += data.value ? data.value.byteLength : 0; | ||
if (!_this2._aborted) { | ||
_context3.next = 18; | ||
_context3.next = 21; | ||
break; | ||
} | ||
throw new NetError(response.url, '', response, 'abort request'); | ||
onProgress(undefined, false, { | ||
range: [startByte, _this2._range[0] + _this2._receivedLength], | ||
vid: _this2._vid, | ||
index: _this2._index, | ||
startTime: startTime, | ||
endTime: endTime | ||
}, response); | ||
return _context3.abrupt("return"); | ||
case 18: | ||
case 21: | ||
_this2._logger.debug('【fetchLoader,onProgress call】,task,', _this2._range, ', start,', startByte, ', end,', _this2._range[0] + _this2._receivedLength, ', done,', data.done); | ||
@@ -423,3 +444,3 @@ | ||
case 24: | ||
case 27: | ||
case "end": | ||
@@ -426,0 +447,0 @@ return _context3.stop(); |
{ | ||
"name": "xgplayer-streaming-shared", | ||
"version": "3.0.0-alpha.5-11", | ||
"version": "3.0.0-alpha.5-12", | ||
"main": "dist/index.min.js", | ||
@@ -5,0 +5,0 @@ "module": "es/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
811463
3494