@besovideo/webrtc-player 0.8.74 → 0.8.75
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/dist/main.es.js
CHANGED
|
@@ -111,7 +111,7 @@ var __async = (__this, __arguments, generator) => {
|
|
|
111
111
|
var define_processenv_default;
|
|
112
112
|
var init_define_processenv = __esm({
|
|
113
113
|
"<define:processenv>"() {
|
|
114
|
-
define_processenv_default = { NODE_ENV: "production", SH_LIB_NAME: "@besovideo/webrtc-player", SH_LIB_VERSION: "0.8.
|
|
114
|
+
define_processenv_default = { NODE_ENV: "production", SH_LIB_NAME: "@besovideo/webrtc-player", SH_LIB_VERSION: "0.8.75", PROJECT_NAMESPACE: "bvplayer" };
|
|
115
115
|
}
|
|
116
116
|
});
|
|
117
117
|
|
|
@@ -16914,7 +16914,7 @@ var MarkerHandle = class extends Plugin {
|
|
|
16914
16914
|
return this.playArea;
|
|
16915
16915
|
}
|
|
16916
16916
|
init(_container, layoutInfo) {
|
|
16917
|
-
if (this.createParams.
|
|
16917
|
+
if (this.createParams.displayMode == "playback") {
|
|
16918
16918
|
return _container;
|
|
16919
16919
|
}
|
|
16920
16920
|
if (layoutInfo) {
|
|
@@ -17178,7 +17178,8 @@ var PlayBack = (props) => {
|
|
|
17178
17178
|
token,
|
|
17179
17179
|
locale = "zh",
|
|
17180
17180
|
type: type1 = "web",
|
|
17181
|
-
zIndexMenu
|
|
17181
|
+
zIndexMenu,
|
|
17182
|
+
displayMode
|
|
17182
17183
|
} = __spreadValues(__spreadValues({}, defaultProps3), props);
|
|
17183
17184
|
i18n_default(locale);
|
|
17184
17185
|
let hplayer = void 0;
|
|
@@ -17198,7 +17199,8 @@ var PlayBack = (props) => {
|
|
|
17198
17199
|
puid: puOption == null ? void 0 : puOption.puId,
|
|
17199
17200
|
currentTimeGatter() {
|
|
17200
17201
|
return barHandle.playbackInfo.current;
|
|
17201
|
-
}
|
|
17202
|
+
},
|
|
17203
|
+
displayMode: (puOption == null ? void 0 : puOption.puId) ? "playback" : displayMode
|
|
17202
17204
|
});
|
|
17203
17205
|
const playbackRender = markerHandle.init(container);
|
|
17204
17206
|
const player = new player_default({
|
|
@@ -23,6 +23,7 @@ interface IPlaybackProps extends Props {
|
|
|
23
23
|
locale?: Parameters<typeof initI18n>["0"];
|
|
24
24
|
type?: IPlaybackPlayType;
|
|
25
25
|
zIndexMenu?: number;
|
|
26
|
+
displayMode?: 'playback';
|
|
26
27
|
}
|
|
27
28
|
type IPlaybackPlayType = "ws-bvrtc" | "web";
|
|
28
29
|
interface IPlaybackInstance extends IComponentInstance {
|