@byteplus/veplayer-plugin 2.3.0-rc.1 → 2.3.0-rc.3
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 +25 -17
- package/esm/index.production.js +1 -1
- package/package.json +1 -4
- package/umd/index.development.js +12 -7
- package/umd/index.production.js +1 -1
package/esm/index.development.js
CHANGED
|
@@ -4,7 +4,6 @@ var __publicField = (obj, key2, value2) => {
|
|
|
4
4
|
__defNormalProp(obj, typeof key2 !== "symbol" ? key2 + "" : key2, value2);
|
|
5
5
|
return value2;
|
|
6
6
|
};
|
|
7
|
-
import { DynamicModule, Plugin, Sniffer, util as util$2, live } from "@byted/veplayer";
|
|
8
7
|
function ownKeys$e(object, enumerableOnly) {
|
|
9
8
|
var keys9 = Object.keys(object);
|
|
10
9
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -12919,7 +12918,8 @@ var Adaptive = /* @__PURE__ */ function(_BasePlugin) {
|
|
|
12919
12918
|
}]);
|
|
12920
12919
|
return Adaptive2;
|
|
12921
12920
|
}(BasePlugin);
|
|
12922
|
-
const
|
|
12921
|
+
const DynamicModule$4 = window["VePlayer"].DynamicModule;
|
|
12922
|
+
const __PLUGIN_NAME__$4 = DynamicModule$4.PluginFlv;
|
|
12923
12923
|
var index$4 = /* @__PURE__ */ Object.freeze({
|
|
12924
12924
|
__proto__: null,
|
|
12925
12925
|
Adaptive,
|
|
@@ -17047,7 +17047,8 @@ var RtsPlugin = /* @__PURE__ */ function(_BasePlugin) {
|
|
|
17047
17047
|
}]);
|
|
17048
17048
|
return RtsPlugin2;
|
|
17049
17049
|
}(BasePlugin);
|
|
17050
|
-
const
|
|
17050
|
+
const DynamicModule$3 = window["VePlayer"].DynamicModule;
|
|
17051
|
+
const __PLUGIN_NAME__$3 = DynamicModule$3.PluginRtm;
|
|
17051
17052
|
var index$3 = /* @__PURE__ */ Object.freeze({
|
|
17052
17053
|
__proto__: null,
|
|
17053
17054
|
RtmPlugin: RtsPlugin,
|
|
@@ -30047,7 +30048,8 @@ var HlsPlugin = /* @__PURE__ */ function(_BasePlugin) {
|
|
|
30047
30048
|
}(BasePlugin);
|
|
30048
30049
|
_defineProperty$a(HlsPlugin, "Hls", Hls);
|
|
30049
30050
|
_defineProperty$a(HlsPlugin, "EVENT", Event$1);
|
|
30050
|
-
const
|
|
30051
|
+
const DynamicModule$2 = window["VePlayer"].DynamicModule;
|
|
30052
|
+
const __PLUGIN_NAME__$2 = DynamicModule$2.PluginHls;
|
|
30051
30053
|
var index$2 = /* @__PURE__ */ Object.freeze({
|
|
30052
30054
|
__proto__: null,
|
|
30053
30055
|
HlsPlugin,
|
|
@@ -49567,7 +49569,8 @@ try {
|
|
|
49567
49569
|
customElements.get(getEleName()) || customElements.define(getEleName(), XGVideo);
|
|
49568
49570
|
} catch (e) {
|
|
49569
49571
|
}
|
|
49570
|
-
const
|
|
49572
|
+
const DynamicModule$1 = window["VePlayer"].DynamicModule;
|
|
49573
|
+
const __PLUGIN_NAME__$1 = DynamicModule$1.PluginXgvideo;
|
|
49571
49574
|
var index$1 = /* @__PURE__ */ Object.freeze({
|
|
49572
49575
|
__proto__: null,
|
|
49573
49576
|
XGVideoPlugin: XGVideo,
|
|
@@ -49933,6 +49936,7 @@ class DrmPlugin extends Mobile {
|
|
|
49933
49936
|
data2.serverCertificatePath && (this.serverCertificatePath = data2.serverCertificatePath);
|
|
49934
49937
|
}
|
|
49935
49938
|
}
|
|
49939
|
+
const DynamicModule = window["VePlayer"].DynamicModule;
|
|
49936
49940
|
const __PLUGIN_NAME__ = DynamicModule.PluginDrm;
|
|
49937
49941
|
var index = /* @__PURE__ */ Object.freeze({
|
|
49938
49942
|
__proto__: null,
|
|
@@ -49972,6 +49976,10 @@ const addUrlParam = (originUrl, params) => {
|
|
|
49972
49976
|
}
|
|
49973
49977
|
};
|
|
49974
49978
|
var timeShift = "";
|
|
49979
|
+
const live = window["VePlayer"].live;
|
|
49980
|
+
const Plugin = window["VePlayer"].Plugin;
|
|
49981
|
+
const Sniffer = window["VePlayer"].Sniffer;
|
|
49982
|
+
const XGUtil = window["VePlayer"].util;
|
|
49975
49983
|
const { POSITIONS } = Plugin;
|
|
49976
49984
|
const { Events } = live;
|
|
49977
49985
|
const MAX_SHIFT = 7 * 24 * 3600;
|
|
@@ -49993,8 +50001,8 @@ class TimeShift extends Plugin {
|
|
|
49993
50001
|
__publicField(this, "_isProgressMoving", false);
|
|
49994
50002
|
__publicField(this, "_liveUrl", "");
|
|
49995
50003
|
__publicField(this, "_stopPropagation", (e) => {
|
|
49996
|
-
|
|
49997
|
-
|
|
50004
|
+
XGUtil.stopPropagation(e);
|
|
50005
|
+
XGUtil.event(e);
|
|
49998
50006
|
});
|
|
49999
50007
|
}
|
|
50000
50008
|
static get pluginName() {
|
|
@@ -50067,11 +50075,11 @@ class TimeShift extends Plugin {
|
|
|
50067
50075
|
if (controls) {
|
|
50068
50076
|
(_a = controls.root) == null ? void 0 : _a.removerEventListener(
|
|
50069
50077
|
"touchmove",
|
|
50070
|
-
|
|
50078
|
+
XGUtil.stopPropagation
|
|
50071
50079
|
);
|
|
50072
50080
|
(_b = controls.center) == null ? void 0 : _b.removerEventListener(
|
|
50073
50081
|
"touchend",
|
|
50074
|
-
|
|
50082
|
+
XGUtil.stopPropagation
|
|
50075
50083
|
);
|
|
50076
50084
|
}
|
|
50077
50085
|
} else {
|
|
@@ -50117,8 +50125,8 @@ class TimeShift extends Plugin {
|
|
|
50117
50125
|
this.bind("touchstart", this._handleMouseDown);
|
|
50118
50126
|
const controls = this.player.controls;
|
|
50119
50127
|
if (controls) {
|
|
50120
|
-
(_a = controls.root) == null ? void 0 : _a.addEventListener("touchmove",
|
|
50121
|
-
(_b = controls.center) == null ? void 0 : _b.addEventListener("touchend",
|
|
50128
|
+
(_a = controls.root) == null ? void 0 : _a.addEventListener("touchmove", XGUtil.stopPropagation);
|
|
50129
|
+
(_b = controls.center) == null ? void 0 : _b.addEventListener("touchend", XGUtil.stopPropagation);
|
|
50122
50130
|
}
|
|
50123
50131
|
} else {
|
|
50124
50132
|
this.bind("mousedown", this._handleMouseDown);
|
|
@@ -50137,7 +50145,7 @@ class TimeShift extends Plugin {
|
|
|
50137
50145
|
}
|
|
50138
50146
|
this._stopPropagation(e);
|
|
50139
50147
|
this._focus();
|
|
50140
|
-
this._progressBtn &&
|
|
50148
|
+
this._progressBtn && XGUtil.addClass(this._progressBtn, "active");
|
|
50141
50149
|
this._timeShiftOffset = this._getProgressOffset(e).progressOffset;
|
|
50142
50150
|
this._progressUpdate();
|
|
50143
50151
|
this._isProgressMoving = true;
|
|
@@ -50157,7 +50165,7 @@ class TimeShift extends Plugin {
|
|
|
50157
50165
|
_handleMouseUp(e) {
|
|
50158
50166
|
this._stopPropagation(e);
|
|
50159
50167
|
this._isProgressMoving = false;
|
|
50160
|
-
this._progressBtn &&
|
|
50168
|
+
this._progressBtn && XGUtil.removeClass(this._progressBtn, "active");
|
|
50161
50169
|
this._changeTimeUrl();
|
|
50162
50170
|
if (this._isMobile) {
|
|
50163
50171
|
this.unbind("touchmove", this._handleMouseMove);
|
|
@@ -50180,16 +50188,16 @@ class TimeShift extends Plugin {
|
|
|
50180
50188
|
}
|
|
50181
50189
|
_focus() {
|
|
50182
50190
|
this.player.controls.pauseAutoHide();
|
|
50183
|
-
|
|
50191
|
+
XGUtil.addClass(this.root, "active");
|
|
50184
50192
|
}
|
|
50185
50193
|
_blur() {
|
|
50186
50194
|
this.player.controls.recoverAutoHide();
|
|
50187
|
-
|
|
50195
|
+
XGUtil.removeClass(this.root, "active");
|
|
50188
50196
|
}
|
|
50189
50197
|
_getProgressPercent(e) {
|
|
50190
50198
|
const { player } = this;
|
|
50191
50199
|
const { width, height, top, left } = this.root.getBoundingClientRect();
|
|
50192
|
-
const _ePos =
|
|
50200
|
+
const _ePos = XGUtil.getEventPos(e, player.zoom);
|
|
50193
50201
|
let rWidth, rLeft, clientX;
|
|
50194
50202
|
if (player.rotateDeg === 90) {
|
|
50195
50203
|
rWidth = height;
|
|
@@ -50248,7 +50256,7 @@ class TimeShift extends Plugin {
|
|
|
50248
50256
|
if (this._backToLiveBtn) {
|
|
50249
50257
|
return;
|
|
50250
50258
|
}
|
|
50251
|
-
this._backToLiveBtn =
|
|
50259
|
+
this._backToLiveBtn = XGUtil.createDom(
|
|
50252
50260
|
"xg-back-live-bt",
|
|
50253
50261
|
this.langText.backToLive,
|
|
50254
50262
|
void 0,
|