@impleotv/stanag-player 1.2.1 → 1.3.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/dist/cjs/components/StanagPlayerWhep/StanagPlayerWhep.d.ts +33 -0
- package/dist/cjs/components/StanagPlayerWhep/StanagPlayerWhep.stories.d.ts +6 -0
- package/dist/esm/components/StanagPlayerWhep/StanagPlayerWhep.d.ts +33 -0
- package/dist/esm/components/StanagPlayerWhep/StanagPlayerWhep.stories.d.ts +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './style.css';
|
|
3
|
+
export interface StreamDim {
|
|
4
|
+
videoWidth: number;
|
|
5
|
+
videoHeight: number;
|
|
6
|
+
}
|
|
7
|
+
export interface StanagPlayerProps {
|
|
8
|
+
serverUrl?: string;
|
|
9
|
+
platform?: string;
|
|
10
|
+
sensor?: string;
|
|
11
|
+
layer: string;
|
|
12
|
+
simulcastEnabled: boolean;
|
|
13
|
+
missionIdOrName?: string;
|
|
14
|
+
width?: number;
|
|
15
|
+
controls?: boolean;
|
|
16
|
+
useStandardControls?: boolean;
|
|
17
|
+
autoplay?: boolean;
|
|
18
|
+
iceServers?: string | RTCIceServer[];
|
|
19
|
+
poster?: string;
|
|
20
|
+
showColorBars?: boolean;
|
|
21
|
+
showErrors?: boolean;
|
|
22
|
+
onDataReceive?(packetTime: string, klvs: JSON): void;
|
|
23
|
+
onStreamInfo?(streamIfo: StreamDim): void;
|
|
24
|
+
onError?(error: string): void;
|
|
25
|
+
onStateChange?(state: string): void;
|
|
26
|
+
}
|
|
27
|
+
export interface StanagPlayerHandle {
|
|
28
|
+
subscribe: () => void;
|
|
29
|
+
close: () => void;
|
|
30
|
+
getSnapshot: () => HTMLCanvasElement | null;
|
|
31
|
+
}
|
|
32
|
+
export declare const StanagPlayerWhep: React.ForwardRefExoticComponent<StanagPlayerProps & React.RefAttributes<StanagPlayerHandle>>;
|
|
33
|
+
export default StanagPlayerWhep;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, import("./StanagPlayerWhep").StanagPlayerProps & React.RefAttributes<import("./StanagPlayerWhep").StanagPlayerHandle>>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const PlayerUrl: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("./StanagPlayerWhep").StanagPlayerProps & React.RefAttributes<import("./StanagPlayerWhep").StanagPlayerHandle>>;
|
|
5
|
+
export declare const Player: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("./StanagPlayerWhep").StanagPlayerProps & React.RefAttributes<import("./StanagPlayerWhep").StanagPlayerHandle>>;
|
|
6
|
+
export declare const PlayerDocker: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("./StanagPlayerWhep").StanagPlayerProps & React.RefAttributes<import("./StanagPlayerWhep").StanagPlayerHandle>>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './style.css';
|
|
3
|
+
export interface StreamDim {
|
|
4
|
+
videoWidth: number;
|
|
5
|
+
videoHeight: number;
|
|
6
|
+
}
|
|
7
|
+
export interface StanagPlayerProps {
|
|
8
|
+
serverUrl?: string;
|
|
9
|
+
platform?: string;
|
|
10
|
+
sensor?: string;
|
|
11
|
+
layer: string;
|
|
12
|
+
simulcastEnabled: boolean;
|
|
13
|
+
missionIdOrName?: string;
|
|
14
|
+
width?: number;
|
|
15
|
+
controls?: boolean;
|
|
16
|
+
useStandardControls?: boolean;
|
|
17
|
+
autoplay?: boolean;
|
|
18
|
+
iceServers?: string | RTCIceServer[];
|
|
19
|
+
poster?: string;
|
|
20
|
+
showColorBars?: boolean;
|
|
21
|
+
showErrors?: boolean;
|
|
22
|
+
onDataReceive?(packetTime: string, klvs: JSON): void;
|
|
23
|
+
onStreamInfo?(streamIfo: StreamDim): void;
|
|
24
|
+
onError?(error: string): void;
|
|
25
|
+
onStateChange?(state: string): void;
|
|
26
|
+
}
|
|
27
|
+
export interface StanagPlayerHandle {
|
|
28
|
+
subscribe: () => void;
|
|
29
|
+
close: () => void;
|
|
30
|
+
getSnapshot: () => HTMLCanvasElement | null;
|
|
31
|
+
}
|
|
32
|
+
export declare const StanagPlayerWhep: React.ForwardRefExoticComponent<StanagPlayerProps & React.RefAttributes<StanagPlayerHandle>>;
|
|
33
|
+
export default StanagPlayerWhep;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, import("./StanagPlayerWhep").StanagPlayerProps & React.RefAttributes<import("./StanagPlayerWhep").StanagPlayerHandle>>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const PlayerUrl: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("./StanagPlayerWhep").StanagPlayerProps & React.RefAttributes<import("./StanagPlayerWhep").StanagPlayerHandle>>;
|
|
5
|
+
export declare const Player: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("./StanagPlayerWhep").StanagPlayerProps & React.RefAttributes<import("./StanagPlayerWhep").StanagPlayerHandle>>;
|
|
6
|
+
export declare const PlayerDocker: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("./StanagPlayerWhep").StanagPlayerProps & React.RefAttributes<import("./StanagPlayerWhep").StanagPlayerHandle>>;
|