cmd-control-client-lib 3.0.139 → 3.0.140

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.
@@ -10,7 +10,9 @@ export declare enum EnumClientStatusType {
10
10
  PLAYER_EVENT = "16",
11
11
  PAGE_HIDDEN = "20",
12
12
  PAGE_VISIBLE = "21",
13
- PROXY_STATE_INFO = "22"
13
+ PROXY_STATE_INFO = "22",
14
+ MEDIA_PLAYER_EVENT = "23",
15
+ WEBRTC_STATS = "24"
14
16
  }
15
17
  export declare class CMDP_CSTATUS implements ICOMMAND {
16
18
  action: ACTION;
@@ -153,5 +153,6 @@ export declare enum ACTION {
153
153
  CMDC_SEDCARDPICTURE = "CMDC_SEDCARDPICTURE",
154
154
  CMDP_CSTATUS = "CMDP_CSTATUS",
155
155
  CMDP_CINIT = "CMDP_CINIT",
156
- CMDP_SMSGREACTION = "CMDP_SMSGREACTION"
156
+ CMDP_SMSGREACTION = "CMDP_SMSGREACTION",
157
+ CMDC_SSTATUS = "CMDC_SSTATUS"
157
158
  }
@@ -1,15 +1,35 @@
1
1
  import { EnumStreamStatusType } from "../@types";
2
2
  import { ICOMMAND, ACTION, baseParamsType, IRESPONSE, RESULT, IKeyMaybeValue } from "../cmd-protocol";
3
+ export declare enum EnumPlayerEventType {
4
+ Play = 0,
5
+ Error = 1,
6
+ Warn = 2,
7
+ Info = 3
8
+ }
9
+ /** for EnumStreamStatusType.MEDIA_PLAYER_EVENT, value = JSON.stringify(MediaPlayerEvent) */
10
+ export declare class MediaPlayerEvent {
11
+ /** the messageId with media */
12
+ messageId: string;
13
+ /** player name. hlsjs, native, etc */
14
+ player: string;
15
+ /** the url of media */
16
+ mediaUrl: string;
17
+ /** the event type */
18
+ eventType: EnumPlayerEventType;
19
+ /**detailed info: error details, player details. etc. JSON.stringify(object)*/
20
+ eventData: string;
21
+ }
3
22
  /** */
4
23
  export declare class CMDP_SSTATUS implements ICOMMAND {
5
24
  action: ACTION;
6
25
  params: baseParamsType & {
7
26
  type: EnumStreamStatusType;
8
27
  value: string;
9
- /**comaseparated list */
28
+ } & {
29
+ /**comaseparated list for PROXY_STATE_INFO*/
10
30
  channelId?: string;
11
- /**comaseparated list */
12
- chatIDs: string;
31
+ /**comaseparated list for PROXY_STATE_INFO*/
32
+ chatIDs?: string;
13
33
  };
14
34
  }
15
35
  export declare class CMDP_SSTATUS_RESPONSE extends CMDP_SSTATUS implements IRESPONSE {
@@ -17,3 +37,9 @@ export declare class CMDP_SSTATUS_RESPONSE extends CMDP_SSTATUS implements IRESP
17
37
  commands: ICOMMAND[];
18
38
  values: IKeyMaybeValue;
19
39
  }
40
+ export declare class CMDC_SSTATUS implements ICOMMAND {
41
+ action: ACTION;
42
+ params: {
43
+ type: EnumStreamStatusType;
44
+ };
45
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cmd-control-client-lib",
3
3
  "description": "Cmd-Client-Library",
4
- "version": "3.0.139",
4
+ "version": "3.0.140",
5
5
  "directories": {
6
6
  "lib": "./dist"
7
7
  },