xgplayer-streaming-shared
Advanced tools
Comparing version 3.0.11-alpha.0 to 3.0.11-alpha.1
@@ -5,4 +5,4 @@ export class SeiService { | ||
emitter: any; | ||
throw(currentTime: any): void; | ||
throw(currentTime: any, isLive: any): void; | ||
reset(): void; | ||
} |
@@ -16,3 +16,3 @@ import { createClass as _createClass, classCallCheck as _classCallCheck, defineProperty as _defineProperty } from "../_virtual/_rollupPluginBabelHelpers.js"; | ||
key: "throw", | ||
value: function _throw(currentTime) { | ||
value: function _throw(currentTime, isLive) { | ||
var _this2 = this; | ||
@@ -33,2 +33,9 @@ if (currentTime === null || currentTime === void 0 || !this._seiSet.size) | ||
}); | ||
if (!isLive) | ||
return; | ||
this._seiSet.forEach(function(s) { | ||
if (s.time < currentTime - 5) { | ||
_this2._seiSet.delete(s); | ||
} | ||
}); | ||
} | ||
@@ -35,0 +42,0 @@ }, { |
{ | ||
"name": "xgplayer-streaming-shared", | ||
"version": "3.0.11-alpha.0", | ||
"version": "3.0.11-alpha.1", | ||
"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
353273
4605