Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

xgplayer-streaming-shared

Package Overview
Dependencies
Maintainers
6
Versions
206
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xgplayer-streaming-shared - npm Package Compare versions

Comparing version 3.0.0-next.28 to 3.0.0-next.29

21

es/mse.js

@@ -67,2 +67,3 @@ import { defineProperty as _defineProperty, inherits as _inherits, createSuper as _createSuper, createClass as _createClass, classCallCheck as _classCallCheck, wrapNativeSuper as _wrapNativeSuper, asyncToGenerator as _asyncToGenerator, regeneratorRuntime as _regeneratorRuntime } from "./_virtual/_rollupPluginBabelHelpers.js";

if (op) {
op.appending = false;
var costtime = nowTime() - _this2._opst;

@@ -84,2 +85,3 @@ _this2._logger.debug("UpdateEnd", op.opName, costtime, op.context);

if (op) {
op.appending = false;
_this2._logger.error("UpdateError", type, op.opName, op.context);

@@ -443,3 +445,3 @@ op.promise.reject(new StreamingError(ERR.MEDIA, ERR.SUB_TYPES.MSE_APPEND_BUFFER, event));

value: function _enqueueOp(type, exec, opName, context, isInsertHead) {
var _this13 = this;
var _this$mediaSource3, _this13 = this;
if (!this.mediaSource)

@@ -452,2 +454,3 @@ return Promise.resolve();

opName,
appending: false,
context

@@ -462,4 +465,4 @@ };

}
if (this.isOpened) {
if (queue.length === 1) {
if (((_this$mediaSource3 = this.mediaSource) === null || _this$mediaSource3 === void 0 ? void 0 : _this$mediaSource3.readyState) !== "close") {
if (queue.length > 0) {
this._startQueue(type);

@@ -469,3 +472,3 @@ }

this._openPromise.then(function() {
if (queue.length === 1) {
if (queue.length > 0) {
_this13._startQueue(type);

@@ -512,3 +515,3 @@ }

});
if (queue.length === 1) {
if (queue.length > 0) {
_this14._startQueue(t);

@@ -548,6 +551,12 @@ }

var op = queue[0];
if (op && !this._mseFullFlag[type]) {
if (op !== null && op !== void 0 && op.appending) {
return;
}
var sb = this._sourceBuffer[type];
if (op && !this._mseFullFlag[type] && sb && !sb.updating) {
try {
op.appending = true;
op.exec();
} catch (error) {
op.appending = false;
if (error && error.message && error.message.indexOf("SourceBuffer is full") >= 0) {

@@ -554,0 +563,0 @@ this._mseFullFlag[type] = true;

{
"name": "xgplayer-streaming-shared",
"version": "3.0.0-next.28",
"version": "3.0.0-next.29",
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc