@besovideo/webrtc-player 0.8.19 → 0.8.21
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.
|
@@ -6,6 +6,7 @@ export interface IAudioPlayerProps extends IBvWebrtcCommonProps {
|
|
|
6
6
|
onGetUserMediaFailed?(): void;
|
|
7
7
|
getRemoteSdpParam: any;
|
|
8
8
|
getRemoteSdpResult?(sdp: string, token?: string, param?: any): Promise<IDialog>;
|
|
9
|
+
type?: "auto" | "webrtc" | "ws-bvrtc";
|
|
9
10
|
}
|
|
10
11
|
export interface IAudioPlayerInstance extends IBvWebrtcComponentInstance {
|
|
11
12
|
}
|
|
@@ -16,7 +16,7 @@ export interface IBvWebrtcComponentProps extends Props {
|
|
|
16
16
|
enableController?: boolean;
|
|
17
17
|
}
|
|
18
18
|
export interface IBvWebrtcComponentInstance extends IComponentInstance {
|
|
19
|
-
open(): Promise<any>;
|
|
19
|
+
open(protocol?: "auto" | "webrtc" | "ws-bvrtc"): Promise<any>;
|
|
20
20
|
close(): Promise<any>;
|
|
21
21
|
destroy(): void;
|
|
22
22
|
setOption?(option: any): void;
|
|
@@ -4,10 +4,9 @@ import { IPuOption } from "./types";
|
|
|
4
4
|
import { IControlPluginMap } from "src/plugins/controller";
|
|
5
5
|
import { MikeButton } from "./subComponent/mikeButton";
|
|
6
6
|
declare type Container = HTMLElement | Element | Node | null;
|
|
7
|
-
declare type langKey = "en" | "zh";
|
|
8
7
|
declare type helperFunc = {
|
|
8
|
+
getDefaultProps: () => Partial<IPuPlayerProps>;
|
|
9
9
|
setDefaultProps: (props: Partial<IPuPlayerProps>) => void;
|
|
10
|
-
setLocaleHandler: (handler: () => langKey) => void;
|
|
11
10
|
};
|
|
12
11
|
interface MediaInfo {
|
|
13
12
|
height?: number;
|