mn-video-player 1.0.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.
@@ -0,0 +1,30 @@
1
+ import MnPlayer from "./js/mn-player.js";
2
+ export type MnVideoPlayerOptions = {
3
+ el: HTMLElement;
4
+ port: number;
5
+ host: string;
6
+ ws: string;
7
+ userId: string;
8
+ tenantId: string;
9
+ accessToken: string;
10
+ };
11
+ export type MnVideoPlayerData = {
12
+ phone: string;
13
+ channelNo: string;
14
+ beginTime: number;
15
+ };
16
+ export declare class MnVideoPlayer {
17
+ canvasEl: HTMLCanvasElement | null;
18
+ opt: MnVideoPlayerOptions | null;
19
+ el: HTMLElement | null;
20
+ $el: any | null;
21
+ player: MnPlayer | null;
22
+ constructor();
23
+ init(opt: MnVideoPlayerOptions): void;
24
+ play(data: MnVideoPlayerData): void;
25
+ pause(): void;
26
+ stop(): void;
27
+ switchStream(type: number): void;
28
+ }
29
+ export default MnVideoPlayer;
30
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,mBAAmB,CAAC;AAGzC,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,WAAW,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;CACpB,CAAA;AACD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AACD,qBAAa,aAAa;IACxB,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAO;IACzC,GAAG,EAAE,oBAAoB,GAAG,IAAI,CAAO;IACvC,EAAE,EAAE,WAAW,GAAG,IAAI,CAAO;IAC7B,GAAG,EAAE,GAAG,GAAG,IAAI,CAAO;IACtB,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAO;;IAK9B,IAAI,CAAC,GAAG,EAAE,oBAAoB;IA6B9B,IAAI,CAAC,IAAI,EAAE,iBAAiB;IAiB5B,KAAK;IAML,IAAI;IAMJ,YAAY,CAAC,IAAI,EAAE,MAAM;CAM1B;AAED,eAAe,aAAa,CAAA"}