@byteplus/veplayer-plugin 2.10.3-rc.1 → 2.11.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/index.development.js +4675 -4739
- package/esm/index.production.js +7 -7
- package/esm/veplayer.plugin.abr.development.js +5020 -4805
- package/esm/veplayer.plugin.abr.production.js +1 -1
- package/esm/veplayer.plugin.drm.development.js +1 -1
- package/esm/veplayer.plugin.drm.production.js +1 -1
- package/esm/veplayer.plugin.flv.development.js +54 -74
- package/esm/veplayer.plugin.flv.production.js +1 -1
- package/esm/veplayer.plugin.hls.development.js +1 -1
- package/esm/veplayer.plugin.hls.production.js +1 -1
- package/esm/veplayer.plugin.hlsjs.development.js +218 -496
- package/esm/veplayer.plugin.hlsjs.production.js +1 -1
- package/esm/veplayer.plugin.rtm.development.js +1 -1
- package/esm/veplayer.plugin.rtm.production.js +1 -1
- package/esm/veplayer.plugin.time.shift.development.js +16 -13
- package/esm/veplayer.plugin.time.shift.production.js +1 -1
- package/esm/veplayer.plugin.xgvideo.development.js +1 -1
- package/esm/veplayer.plugin.xgvideo.production.js +1 -1
- package/esm/veplayer.strategy.base.development.js +1 -1
- package/esm/veplayer.strategy.base.production.js +1 -1
- package/esm/veplayer.strategy.rtm.adaptive.buffer.development.js +1 -1
- package/esm/veplayer.strategy.rtm.adaptive.buffer.production.js +1 -1
- package/package.json +2 -106
- package/umd/veplayer.plugin.abr.development.js +5019 -4804
- package/umd/veplayer.plugin.abr.production.js +1 -1
- package/umd/veplayer.plugin.flv.development.js +53 -73
- package/umd/veplayer.plugin.flv.production.js +1 -1
- package/umd/veplayer.plugin.hlsjs.development.js +217 -495
- package/umd/veplayer.plugin.hlsjs.production.js +1 -1
- package/esm/ad.d.ts +0 -3
- package/esm/hlsjs.d.ts +0 -3
- package/esm/time-shift.d.ts +0 -3
- package/umd/ad.d.ts +0 -3
- package/umd/hlsjs.d.ts +0 -3
- package/umd/time-shift.d.ts +0 -3
|
@@ -4,7 +4,6 @@ var __publicField = (obj, key, value) => {
|
|
|
4
4
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
|
-
import { DynamicModule } from "@byteplus/veplayer";
|
|
8
7
|
function ownKeys$2(object, enumerableOnly) {
|
|
9
8
|
var keys = Object.keys(object);
|
|
10
9
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -11758,9 +11757,47 @@ var FlvPlugin$1 = /* @__PURE__ */ function(_BasePlugin) {
|
|
|
11758
11757
|
return FlvPlugin2;
|
|
11759
11758
|
}(BasePlugin);
|
|
11760
11759
|
_defineProperty$3(FlvPlugin$1, "Flv", Flv);
|
|
11760
|
+
function _assertThisInitialized(e) {
|
|
11761
|
+
if (void 0 === e)
|
|
11762
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
11763
|
+
return e;
|
|
11764
|
+
}
|
|
11761
11765
|
function _callSuper(t, o, e) {
|
|
11762
11766
|
return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
|
|
11763
11767
|
}
|
|
11768
|
+
function _classCallCheck(a, n) {
|
|
11769
|
+
if (!(a instanceof n))
|
|
11770
|
+
throw new TypeError("Cannot call a class as a function");
|
|
11771
|
+
}
|
|
11772
|
+
function _defineProperties(e, r) {
|
|
11773
|
+
for (var t = 0; t < r.length; t++) {
|
|
11774
|
+
var o = r[t];
|
|
11775
|
+
o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey(o.key), o);
|
|
11776
|
+
}
|
|
11777
|
+
}
|
|
11778
|
+
function _createClass(e, r, t) {
|
|
11779
|
+
return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
|
|
11780
|
+
writable: false
|
|
11781
|
+
}), e;
|
|
11782
|
+
}
|
|
11783
|
+
function _getPrototypeOf(t) {
|
|
11784
|
+
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t2) {
|
|
11785
|
+
return t2.__proto__ || Object.getPrototypeOf(t2);
|
|
11786
|
+
}, _getPrototypeOf(t);
|
|
11787
|
+
}
|
|
11788
|
+
function _inherits(t, e) {
|
|
11789
|
+
if ("function" != typeof e && null !== e)
|
|
11790
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
11791
|
+
t.prototype = Object.create(e && e.prototype, {
|
|
11792
|
+
constructor: {
|
|
11793
|
+
value: t,
|
|
11794
|
+
writable: true,
|
|
11795
|
+
configurable: true
|
|
11796
|
+
}
|
|
11797
|
+
}), Object.defineProperty(t, "prototype", {
|
|
11798
|
+
writable: false
|
|
11799
|
+
}), e && _setPrototypeOf(t, e);
|
|
11800
|
+
}
|
|
11764
11801
|
function _isNativeReflectConstruct() {
|
|
11765
11802
|
try {
|
|
11766
11803
|
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
@@ -11771,6 +11808,18 @@ function _isNativeReflectConstruct() {
|
|
|
11771
11808
|
return !!t;
|
|
11772
11809
|
})();
|
|
11773
11810
|
}
|
|
11811
|
+
function _possibleConstructorReturn(t, e) {
|
|
11812
|
+
if (e && ("object" == typeof e || "function" == typeof e))
|
|
11813
|
+
return e;
|
|
11814
|
+
if (void 0 !== e)
|
|
11815
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
11816
|
+
return _assertThisInitialized(t);
|
|
11817
|
+
}
|
|
11818
|
+
function _setPrototypeOf(t, e) {
|
|
11819
|
+
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
|
|
11820
|
+
return t2.__proto__ = e2, t2;
|
|
11821
|
+
}, _setPrototypeOf(t, e);
|
|
11822
|
+
}
|
|
11774
11823
|
function _toPrimitive(t, r) {
|
|
11775
11824
|
if ("object" != typeof t || !t)
|
|
11776
11825
|
return t;
|
|
@@ -11785,84 +11834,15 @@ function _toPrimitive(t, r) {
|
|
|
11785
11834
|
}
|
|
11786
11835
|
function _toPropertyKey(t) {
|
|
11787
11836
|
var i = _toPrimitive(t, "string");
|
|
11788
|
-
return "symbol" == typeof i ? i :
|
|
11789
|
-
}
|
|
11790
|
-
function _classCallCheck(instance, Constructor) {
|
|
11791
|
-
if (!(instance instanceof Constructor)) {
|
|
11792
|
-
throw new TypeError("Cannot call a class as a function");
|
|
11793
|
-
}
|
|
11794
|
-
}
|
|
11795
|
-
function _defineProperties(target, props) {
|
|
11796
|
-
for (var i = 0; i < props.length; i++) {
|
|
11797
|
-
var descriptor = props[i];
|
|
11798
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
11799
|
-
descriptor.configurable = true;
|
|
11800
|
-
if ("value" in descriptor)
|
|
11801
|
-
descriptor.writable = true;
|
|
11802
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
11803
|
-
}
|
|
11804
|
-
}
|
|
11805
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
11806
|
-
if (protoProps)
|
|
11807
|
-
_defineProperties(Constructor.prototype, protoProps);
|
|
11808
|
-
if (staticProps)
|
|
11809
|
-
_defineProperties(Constructor, staticProps);
|
|
11810
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
11811
|
-
writable: false
|
|
11812
|
-
});
|
|
11813
|
-
return Constructor;
|
|
11814
|
-
}
|
|
11815
|
-
function _inherits(subClass, superClass) {
|
|
11816
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
11817
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
11818
|
-
}
|
|
11819
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
11820
|
-
constructor: {
|
|
11821
|
-
value: subClass,
|
|
11822
|
-
writable: true,
|
|
11823
|
-
configurable: true
|
|
11824
|
-
}
|
|
11825
|
-
});
|
|
11826
|
-
Object.defineProperty(subClass, "prototype", {
|
|
11827
|
-
writable: false
|
|
11828
|
-
});
|
|
11829
|
-
if (superClass)
|
|
11830
|
-
_setPrototypeOf(subClass, superClass);
|
|
11831
|
-
}
|
|
11832
|
-
function _getPrototypeOf(o) {
|
|
11833
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
|
|
11834
|
-
return o2.__proto__ || Object.getPrototypeOf(o2);
|
|
11835
|
-
};
|
|
11836
|
-
return _getPrototypeOf(o);
|
|
11837
|
-
}
|
|
11838
|
-
function _setPrototypeOf(o, p) {
|
|
11839
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
|
|
11840
|
-
o2.__proto__ = p2;
|
|
11841
|
-
return o2;
|
|
11842
|
-
};
|
|
11843
|
-
return _setPrototypeOf(o, p);
|
|
11844
|
-
}
|
|
11845
|
-
function _assertThisInitialized(self) {
|
|
11846
|
-
if (self === void 0) {
|
|
11847
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
11848
|
-
}
|
|
11849
|
-
return self;
|
|
11850
|
-
}
|
|
11851
|
-
function _possibleConstructorReturn(self, call) {
|
|
11852
|
-
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
11853
|
-
return call;
|
|
11854
|
-
} else if (call !== void 0) {
|
|
11855
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
11856
|
-
}
|
|
11857
|
-
return _assertThisInitialized(self);
|
|
11837
|
+
return "symbol" == typeof i ? i : i + "";
|
|
11858
11838
|
}
|
|
11859
11839
|
var Adaptive = /* @__PURE__ */ function(_BasePlugin) {
|
|
11860
|
-
_inherits(Adaptive2, _BasePlugin);
|
|
11861
11840
|
function Adaptive2() {
|
|
11862
11841
|
_classCallCheck(this, Adaptive2);
|
|
11863
11842
|
return _callSuper(this, Adaptive2, arguments);
|
|
11864
11843
|
}
|
|
11865
|
-
|
|
11844
|
+
_inherits(Adaptive2, _BasePlugin);
|
|
11845
|
+
return _createClass(Adaptive2, [{
|
|
11866
11846
|
key: "afterCreate",
|
|
11867
11847
|
value: function afterCreate() {
|
|
11868
11848
|
this.on("timeupdate", this.onTimeUpdate.bind(this));
|
|
@@ -11915,7 +11895,6 @@ var Adaptive = /* @__PURE__ */ function(_BasePlugin) {
|
|
|
11915
11895
|
};
|
|
11916
11896
|
}
|
|
11917
11897
|
}]);
|
|
11918
|
-
return Adaptive2;
|
|
11919
11898
|
}(BasePlugin);
|
|
11920
11899
|
class FlvPlugin extends FlvPlugin$1 {
|
|
11921
11900
|
constructor() {
|
|
@@ -11932,6 +11911,7 @@ class FlvPlugin extends FlvPlugin$1 {
|
|
|
11932
11911
|
super.beforePlayerInit();
|
|
11933
11912
|
}
|
|
11934
11913
|
}
|
|
11914
|
+
const DynamicModule = window["VePlayer"].DynamicModule;
|
|
11935
11915
|
const __PLUGIN_NAME__ = DynamicModule.PluginFlv;
|
|
11936
11916
|
export {
|
|
11937
11917
|
Adaptive,
|