@besovideo/webrtc-player 0.8.82 → 0.8.84
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.css
CHANGED
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.84", PROJECT_NAMESPACE: "bvplayer" };
|
|
115
115
|
}
|
|
116
116
|
});
|
|
117
117
|
|
|
@@ -16882,11 +16882,10 @@ var PuPlayer = (props) => {
|
|
|
16882
16882
|
volumeSlider.percent = hplayer.getVolume();
|
|
16883
16883
|
DisplayVolumn2(Number(e2 == null ? void 0 : e2.percent));
|
|
16884
16884
|
});
|
|
16885
|
-
} else {
|
|
16886
|
-
player.addEventListener("volumeChange", (params) => {
|
|
16887
|
-
hplayer.setVolume(params == null ? void 0 : params.percent);
|
|
16888
|
-
});
|
|
16889
16885
|
}
|
|
16886
|
+
player.addEventListener("volumeChange", (params) => {
|
|
16887
|
+
hplayer.setVolume(params == null ? void 0 : params.percent);
|
|
16888
|
+
});
|
|
16890
16889
|
if (player.mikeBtn) {
|
|
16891
16890
|
player.mikeBtn.intercom = intercom == null ? void 0 : intercom.instance;
|
|
16892
16891
|
player.mikeBtn.type = this.protocol;
|
|
@@ -3,7 +3,7 @@ import { IVideoFits } from "../plugins/player";
|
|
|
3
3
|
import { IPuOption } from "./types";
|
|
4
4
|
import { IControlPluginMap } from "../plugins/controller";
|
|
5
5
|
import { MikeButton } from "./subComponent/mikeButton";
|
|
6
|
-
import {
|
|
6
|
+
import { CreatePlayerState } from "./subComponent/playState";
|
|
7
7
|
type Container = HTMLElement | Element | Node | null;
|
|
8
8
|
type helperFunc = {
|
|
9
9
|
getDefaultProps: () => Partial<IPuPlayerProps>;
|
|
@@ -64,9 +64,7 @@ export interface IPuPlayerInstance extends IComponentInstance {
|
|
|
64
64
|
protocol: "webrtc" | "ws-bvrtc" | "auto";
|
|
65
65
|
videoFit: keyof IVideoFits;
|
|
66
66
|
mike?: MikeButton;
|
|
67
|
-
playerStatus:
|
|
68
|
-
fullscreen: IDataHandle<boolean>;
|
|
69
|
-
};
|
|
67
|
+
playerStatus: ReturnType<typeof CreatePlayerState>;
|
|
70
68
|
}
|
|
71
69
|
declare const PuPlayer: SFC<IPuPlayerProps, IPuPlayerInstance> & helperFunc;
|
|
72
70
|
export default PuPlayer;
|