xgplayer-streaming-shared
Advanced tools
Comparing version 3.0.0-alpha.5-12 to 3.0.0-alpha.5-13
@@ -356,3 +356,4 @@ import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator'; | ||
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3() { | ||
var startByte, costTime; | ||
var _startByte, err, startByte, costTime; | ||
return _regeneratorRuntime.wrap(function _callee3$(_context3) { | ||
@@ -370,3 +371,3 @@ while (1) { | ||
endTime = Date.now(); | ||
_context3.next = 16; | ||
_context3.next = 15; | ||
break; | ||
@@ -377,13 +378,8 @@ | ||
_context3.t0 = _context3["catch"](1); | ||
if (!_this2._aborted) { | ||
_context3.next = 14; | ||
break; | ||
} | ||
return _context3.abrupt("return"); | ||
case 14: | ||
// request aborted | ||
endTime = Date.now(); | ||
_startByte = _this2._range[0] + _this2._receivedLength; | ||
err = _this2._aborted ? null : _context3.t0; | ||
onProgress(undefined, false, { | ||
range: [_this2._range[0] + _this2._receivedLength, _this2._range[0] + _this2._receivedLength], | ||
range: [_startByte, _startByte], | ||
vid: _this2._vid, | ||
@@ -393,12 +389,11 @@ index: _this2._index, | ||
endTime: endTime, | ||
err: _context3.t0 | ||
err: err | ||
}, response); | ||
return _context3.abrupt("return"); | ||
case 16: | ||
case 15: | ||
startByte = _this2._range[0] + _this2._receivedLength; | ||
_this2._receivedLength += data.value ? data.value.byteLength : 0; | ||
if (!_this2._aborted) { | ||
_context3.next = 21; | ||
_context3.next = 19; | ||
break; | ||
@@ -408,3 +403,3 @@ } | ||
onProgress(undefined, false, { | ||
range: [startByte, _this2._range[0] + _this2._receivedLength], | ||
range: [startByte, startByte], | ||
vid: _this2._vid, | ||
@@ -417,3 +412,5 @@ index: _this2._index, | ||
case 21: | ||
case 19: | ||
_this2._receivedLength += data.value ? data.value.byteLength : 0; | ||
_this2._logger.debug('【fetchLoader,onProgress call】,task,', _this2._range, ', start,', startByte, ', end,', _this2._range[0] + _this2._receivedLength, ', done,', data.done); | ||
@@ -447,3 +444,3 @@ | ||
case 27: | ||
case 26: | ||
case "end": | ||
@@ -450,0 +447,0 @@ return _context3.stop(); |
{ | ||
"name": "xgplayer-streaming-shared", | ||
"version": "3.0.0-alpha.5-12", | ||
"version": "3.0.0-alpha.5-13", | ||
"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
811272
3492