@video-lab/vue 3.0.0 → 3.1.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.
@@ -82,9 +82,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
82
82
  bitrate?: number | undefined;
83
83
  }[];
84
84
  subtitles?: {
85
- locale: string;
86
85
  label: string;
87
86
  id: number;
87
+ locale: string;
88
88
  }[] | undefined;
89
89
  };
90
90
  } | {
@@ -127,8 +127,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
127
127
  } | {
128
128
  event: "qualitychange";
129
129
  payload: {
130
- auto: boolean;
131
130
  level: number;
131
+ auto: boolean;
132
132
  };
133
133
  } | {
134
134
  event: "subtitlechange";
@@ -141,7 +141,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
141
141
  code: "E_MEDIA_NOT_SUPPORTED" | "E_MANIFEST_PARSE" | "E_MEDIA_DECODE" | "E_MEDIA_ABORTED" | "E_SUBTITLE_LOAD_FAILED" | "E_AUTOPLAY_BLOCKED" | "E_NETWORK" | "E_NETWORK_TIMEOUT" | "E_AUTH_EXPIRED" | "E_ENV_CSP_BLOCKED" | "E_METHOD_NOT_SUPPORTED" | "E_DANMAKU_SEND_FAILED" | "E_INTERNAL" | "E_UNKNOWN" | "E_PLAYER_DESTROYED" | "E_HANDSHAKE_TIMEOUT" | "E_HANDSHAKE_VERSION_MISMATCH" | "E_LOAD_FAILED" | "E_FRAME_CRASHED";
142
142
  message: string;
143
143
  retryable: boolean;
144
- category: "autoplay" | "manifest" | "media" | "network" | "auth" | "env";
144
+ category: "manifest" | "media" | "network" | "auth" | "env" | "autoplay";
145
145
  cause?: import('zod').objectOutputType<{
146
146
  name: import('zod').ZodString;
147
147
  message: import('zod').ZodString;
@@ -244,7 +244,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
244
244
  phase: "start" | "end";
245
245
  position: number;
246
246
  durationMs?: number | undefined;
247
- kind?: "seek" | "playback" | "firstframe" | undefined;
247
+ kind?: "playback" | "firstframe" | "seek" | undefined;
248
248
  };
249
249
  } | {
250
250
  event: "playablechange";
@@ -252,7 +252,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
252
252
  reason: "error" | "stalled" | "ok" | "initializing" | "buffering" | "reconnecting" | "autoplay_blocked" | "frame_disconnected" | "degraded";
253
253
  playable: boolean;
254
254
  recoverable: boolean;
255
- action?: "play" | "none" | "retry" | "replace-source" | "recreate-frame" | undefined;
255
+ action?: "play" | "retry" | "replace-source" | "recreate-frame" | "none" | undefined;
256
256
  };
257
257
  } | {
258
258
  event: "kernelhealth";
@@ -308,8 +308,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
308
308
  } | {
309
309
  event: "useraction";
310
310
  payload: {
311
- source: string;
312
311
  action: "seek" | "switch_play_pause" | "switch_fullscreen" | "switch_cssfullscreen" | "switch_css_fullscreen" | "change_definition" | "change_rate" | "change_volume" | "change_muted" | "change_pip" | "rotate" | "shot" | "download" | "switch_danmu" | "error_retry";
312
+ source: string;
313
313
  from: string | number | boolean | null;
314
314
  to: string | number | boolean | null;
315
315
  };
@@ -361,9 +361,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
361
361
  bitrate?: number | undefined;
362
362
  }[];
363
363
  subtitles?: {
364
- locale: string;
365
364
  label: string;
366
365
  id: number;
366
+ locale: string;
367
367
  }[] | undefined;
368
368
  };
369
369
  } | {
@@ -406,8 +406,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
406
406
  } | {
407
407
  event: "qualitychange";
408
408
  payload: {
409
- auto: boolean;
410
409
  level: number;
410
+ auto: boolean;
411
411
  };
412
412
  } | {
413
413
  event: "subtitlechange";
@@ -420,7 +420,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
420
420
  code: "E_MEDIA_NOT_SUPPORTED" | "E_MANIFEST_PARSE" | "E_MEDIA_DECODE" | "E_MEDIA_ABORTED" | "E_SUBTITLE_LOAD_FAILED" | "E_AUTOPLAY_BLOCKED" | "E_NETWORK" | "E_NETWORK_TIMEOUT" | "E_AUTH_EXPIRED" | "E_ENV_CSP_BLOCKED" | "E_METHOD_NOT_SUPPORTED" | "E_DANMAKU_SEND_FAILED" | "E_INTERNAL" | "E_UNKNOWN" | "E_PLAYER_DESTROYED" | "E_HANDSHAKE_TIMEOUT" | "E_HANDSHAKE_VERSION_MISMATCH" | "E_LOAD_FAILED" | "E_FRAME_CRASHED";
421
421
  message: string;
422
422
  retryable: boolean;
423
- category: "autoplay" | "manifest" | "media" | "network" | "auth" | "env";
423
+ category: "manifest" | "media" | "network" | "auth" | "env" | "autoplay";
424
424
  cause?: import('zod').objectOutputType<{
425
425
  name: import('zod').ZodString;
426
426
  message: import('zod').ZodString;
@@ -523,7 +523,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
523
523
  phase: "start" | "end";
524
524
  position: number;
525
525
  durationMs?: number | undefined;
526
- kind?: "seek" | "playback" | "firstframe" | undefined;
526
+ kind?: "playback" | "firstframe" | "seek" | undefined;
527
527
  };
528
528
  } | {
529
529
  event: "playablechange";
@@ -531,7 +531,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
531
531
  reason: "error" | "stalled" | "ok" | "initializing" | "buffering" | "reconnecting" | "autoplay_blocked" | "frame_disconnected" | "degraded";
532
532
  playable: boolean;
533
533
  recoverable: boolean;
534
- action?: "play" | "none" | "retry" | "replace-source" | "recreate-frame" | undefined;
534
+ action?: "play" | "retry" | "replace-source" | "recreate-frame" | "none" | undefined;
535
535
  };
536
536
  } | {
537
537
  event: "kernelhealth";
@@ -587,16 +587,16 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
587
587
  } | {
588
588
  event: "useraction";
589
589
  payload: {
590
- source: string;
591
590
  action: "seek" | "switch_play_pause" | "switch_fullscreen" | "switch_cssfullscreen" | "switch_css_fullscreen" | "change_definition" | "change_rate" | "change_volume" | "change_muted" | "change_pip" | "rotate" | "shot" | "download" | "switch_danmu" | "error_retry";
591
+ source: string;
592
592
  from: string | number | boolean | null;
593
593
  to: string | number | boolean | null;
594
594
  };
595
595
  };
596
596
  producerSessionId: string;
597
- sequence: number;
598
597
  deliveryId: string;
599
598
  occurredAtMs: number;
599
+ sequence: number;
600
600
  }) => void;
601
601
  ready: (payload: {
602
602
  duration: number;
@@ -633,7 +633,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
633
633
  code: "E_MEDIA_NOT_SUPPORTED" | "E_MANIFEST_PARSE" | "E_MEDIA_DECODE" | "E_MEDIA_ABORTED" | "E_SUBTITLE_LOAD_FAILED" | "E_AUTOPLAY_BLOCKED" | "E_NETWORK" | "E_NETWORK_TIMEOUT" | "E_AUTH_EXPIRED" | "E_ENV_CSP_BLOCKED" | "E_METHOD_NOT_SUPPORTED" | "E_DANMAKU_SEND_FAILED" | "E_INTERNAL" | "E_UNKNOWN" | "E_PLAYER_DESTROYED" | "E_HANDSHAKE_TIMEOUT" | "E_HANDSHAKE_VERSION_MISMATCH" | "E_LOAD_FAILED" | "E_FRAME_CRASHED";
634
634
  message: string;
635
635
  retryable: boolean;
636
- category: "autoplay" | "manifest" | "media" | "network" | "auth" | "env";
636
+ category: "manifest" | "media" | "network" | "auth" | "env" | "autoplay";
637
637
  cause?: import('zod').objectOutputType<{
638
638
  name: import('zod').ZodString;
639
639
  message: import('zod').ZodString;
@@ -656,7 +656,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
656
656
  reason: "error" | "stalled" | "ok" | "initializing" | "buffering" | "reconnecting" | "autoplay_blocked" | "frame_disconnected" | "degraded";
657
657
  playable: boolean;
658
658
  recoverable: boolean;
659
- action?: "play" | "none" | "retry" | "replace-source" | "recreate-frame" | undefined;
659
+ action?: "play" | "retry" | "replace-source" | "recreate-frame" | "none" | undefined;
660
660
  }) => void;
661
661
  kernelHealth: (payload: {
662
662
  reason: "media" | "network" | "other";
@@ -729,8 +729,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
729
729
  active: boolean;
730
730
  }) => void;
731
731
  userAction: (payload: {
732
- source: string;
733
732
  action: "seek" | "switch_play_pause" | "switch_fullscreen" | "switch_cssfullscreen" | "switch_css_fullscreen" | "change_definition" | "change_rate" | "change_volume" | "change_muted" | "change_pip" | "rotate" | "shot" | "download" | "switch_danmu" | "error_retry";
733
+ source: string;
734
734
  from: string | number | boolean | null;
735
735
  to: string | number | boolean | null;
736
736
  }) => void;
@@ -760,7 +760,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
760
760
  code: "E_MEDIA_NOT_SUPPORTED" | "E_MANIFEST_PARSE" | "E_MEDIA_DECODE" | "E_MEDIA_ABORTED" | "E_SUBTITLE_LOAD_FAILED" | "E_AUTOPLAY_BLOCKED" | "E_NETWORK" | "E_NETWORK_TIMEOUT" | "E_AUTH_EXPIRED" | "E_ENV_CSP_BLOCKED" | "E_METHOD_NOT_SUPPORTED" | "E_DANMAKU_SEND_FAILED" | "E_INTERNAL" | "E_UNKNOWN" | "E_PLAYER_DESTROYED" | "E_HANDSHAKE_TIMEOUT" | "E_HANDSHAKE_VERSION_MISMATCH" | "E_LOAD_FAILED" | "E_FRAME_CRASHED";
761
761
  message: string;
762
762
  retryable: boolean;
763
- category: "autoplay" | "manifest" | "media" | "network" | "auth" | "env";
763
+ category: "manifest" | "media" | "network" | "auth" | "env" | "autoplay";
764
764
  cause?: import('zod').objectOutputType<{
765
765
  name: import('zod').ZodString;
766
766
  message: import('zod').ZodString;
@@ -819,9 +819,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
819
819
  bitrate?: number | undefined;
820
820
  }[];
821
821
  subtitles?: {
822
- locale: string;
823
822
  label: string;
824
823
  id: number;
824
+ locale: string;
825
825
  }[] | undefined;
826
826
  };
827
827
  } | {
@@ -864,8 +864,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
864
864
  } | {
865
865
  event: "qualitychange";
866
866
  payload: {
867
- auto: boolean;
868
867
  level: number;
868
+ auto: boolean;
869
869
  };
870
870
  } | {
871
871
  event: "subtitlechange";
@@ -878,7 +878,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
878
878
  code: "E_MEDIA_NOT_SUPPORTED" | "E_MANIFEST_PARSE" | "E_MEDIA_DECODE" | "E_MEDIA_ABORTED" | "E_SUBTITLE_LOAD_FAILED" | "E_AUTOPLAY_BLOCKED" | "E_NETWORK" | "E_NETWORK_TIMEOUT" | "E_AUTH_EXPIRED" | "E_ENV_CSP_BLOCKED" | "E_METHOD_NOT_SUPPORTED" | "E_DANMAKU_SEND_FAILED" | "E_INTERNAL" | "E_UNKNOWN" | "E_PLAYER_DESTROYED" | "E_HANDSHAKE_TIMEOUT" | "E_HANDSHAKE_VERSION_MISMATCH" | "E_LOAD_FAILED" | "E_FRAME_CRASHED";
879
879
  message: string;
880
880
  retryable: boolean;
881
- category: "autoplay" | "manifest" | "media" | "network" | "auth" | "env";
881
+ category: "manifest" | "media" | "network" | "auth" | "env" | "autoplay";
882
882
  cause?: import('zod').objectOutputType<{
883
883
  name: import('zod').ZodString;
884
884
  message: import('zod').ZodString;
@@ -981,7 +981,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
981
981
  phase: "start" | "end";
982
982
  position: number;
983
983
  durationMs?: number | undefined;
984
- kind?: "seek" | "playback" | "firstframe" | undefined;
984
+ kind?: "playback" | "firstframe" | "seek" | undefined;
985
985
  };
986
986
  } | {
987
987
  event: "playablechange";
@@ -989,7 +989,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
989
989
  reason: "error" | "stalled" | "ok" | "initializing" | "buffering" | "reconnecting" | "autoplay_blocked" | "frame_disconnected" | "degraded";
990
990
  playable: boolean;
991
991
  recoverable: boolean;
992
- action?: "play" | "none" | "retry" | "replace-source" | "recreate-frame" | undefined;
992
+ action?: "play" | "retry" | "replace-source" | "recreate-frame" | "none" | undefined;
993
993
  };
994
994
  } | {
995
995
  event: "kernelhealth";
@@ -1045,8 +1045,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
1045
1045
  } | {
1046
1046
  event: "useraction";
1047
1047
  payload: {
1048
- source: string;
1049
1048
  action: "seek" | "switch_play_pause" | "switch_fullscreen" | "switch_cssfullscreen" | "switch_css_fullscreen" | "change_definition" | "change_rate" | "change_volume" | "change_muted" | "change_pip" | "rotate" | "shot" | "download" | "switch_danmu" | "error_retry";
1049
+ source: string;
1050
1050
  from: string | number | boolean | null;
1051
1051
  to: string | number | boolean | null;
1052
1052
  };
@@ -1098,9 +1098,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
1098
1098
  bitrate?: number | undefined;
1099
1099
  }[];
1100
1100
  subtitles?: {
1101
- locale: string;
1102
1101
  label: string;
1103
1102
  id: number;
1103
+ locale: string;
1104
1104
  }[] | undefined;
1105
1105
  };
1106
1106
  } | {
@@ -1143,8 +1143,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
1143
1143
  } | {
1144
1144
  event: "qualitychange";
1145
1145
  payload: {
1146
- auto: boolean;
1147
1146
  level: number;
1147
+ auto: boolean;
1148
1148
  };
1149
1149
  } | {
1150
1150
  event: "subtitlechange";
@@ -1157,7 +1157,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
1157
1157
  code: "E_MEDIA_NOT_SUPPORTED" | "E_MANIFEST_PARSE" | "E_MEDIA_DECODE" | "E_MEDIA_ABORTED" | "E_SUBTITLE_LOAD_FAILED" | "E_AUTOPLAY_BLOCKED" | "E_NETWORK" | "E_NETWORK_TIMEOUT" | "E_AUTH_EXPIRED" | "E_ENV_CSP_BLOCKED" | "E_METHOD_NOT_SUPPORTED" | "E_DANMAKU_SEND_FAILED" | "E_INTERNAL" | "E_UNKNOWN" | "E_PLAYER_DESTROYED" | "E_HANDSHAKE_TIMEOUT" | "E_HANDSHAKE_VERSION_MISMATCH" | "E_LOAD_FAILED" | "E_FRAME_CRASHED";
1158
1158
  message: string;
1159
1159
  retryable: boolean;
1160
- category: "autoplay" | "manifest" | "media" | "network" | "auth" | "env";
1160
+ category: "manifest" | "media" | "network" | "auth" | "env" | "autoplay";
1161
1161
  cause?: import('zod').objectOutputType<{
1162
1162
  name: import('zod').ZodString;
1163
1163
  message: import('zod').ZodString;
@@ -1260,7 +1260,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
1260
1260
  phase: "start" | "end";
1261
1261
  position: number;
1262
1262
  durationMs?: number | undefined;
1263
- kind?: "seek" | "playback" | "firstframe" | undefined;
1263
+ kind?: "playback" | "firstframe" | "seek" | undefined;
1264
1264
  };
1265
1265
  } | {
1266
1266
  event: "playablechange";
@@ -1268,7 +1268,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
1268
1268
  reason: "error" | "stalled" | "ok" | "initializing" | "buffering" | "reconnecting" | "autoplay_blocked" | "frame_disconnected" | "degraded";
1269
1269
  playable: boolean;
1270
1270
  recoverable: boolean;
1271
- action?: "play" | "none" | "retry" | "replace-source" | "recreate-frame" | undefined;
1271
+ action?: "play" | "retry" | "replace-source" | "recreate-frame" | "none" | undefined;
1272
1272
  };
1273
1273
  } | {
1274
1274
  event: "kernelhealth";
@@ -1324,16 +1324,16 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
1324
1324
  } | {
1325
1325
  event: "useraction";
1326
1326
  payload: {
1327
- source: string;
1328
1327
  action: "seek" | "switch_play_pause" | "switch_fullscreen" | "switch_cssfullscreen" | "switch_css_fullscreen" | "change_definition" | "change_rate" | "change_volume" | "change_muted" | "change_pip" | "rotate" | "shot" | "download" | "switch_danmu" | "error_retry";
1328
+ source: string;
1329
1329
  from: string | number | boolean | null;
1330
1330
  to: string | number | boolean | null;
1331
1331
  };
1332
1332
  };
1333
1333
  producerSessionId: string;
1334
- sequence: number;
1335
1334
  deliveryId: string;
1336
1335
  occurredAtMs: number;
1336
+ sequence: number;
1337
1337
  }) => any) | undefined;
1338
1338
  onReady?: ((payload: {
1339
1339
  duration: number;
@@ -1365,7 +1365,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
1365
1365
  reason: "error" | "stalled" | "ok" | "initializing" | "buffering" | "reconnecting" | "autoplay_blocked" | "frame_disconnected" | "degraded";
1366
1366
  playable: boolean;
1367
1367
  recoverable: boolean;
1368
- action?: "play" | "none" | "retry" | "replace-source" | "recreate-frame" | undefined;
1368
+ action?: "play" | "retry" | "replace-source" | "recreate-frame" | "none" | undefined;
1369
1369
  }) => any) | undefined;
1370
1370
  onKernelHealth?: ((payload: {
1371
1371
  reason: "media" | "network" | "other";
@@ -1438,8 +1438,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
1438
1438
  active: boolean;
1439
1439
  }) => any) | undefined;
1440
1440
  onUserAction?: ((payload: {
1441
- source: string;
1442
1441
  action: "seek" | "switch_play_pause" | "switch_fullscreen" | "switch_cssfullscreen" | "switch_css_fullscreen" | "change_definition" | "change_rate" | "change_volume" | "change_muted" | "change_pip" | "rotate" | "shot" | "download" | "switch_danmu" | "error_retry";
1442
+ source: string;
1443
1443
  from: string | number | boolean | null;
1444
1444
  to: string | number | boolean | null;
1445
1445
  }) => any) | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@video-lab/vue",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -28,9 +28,9 @@
28
28
  "vue": "^3.4.0"
29
29
  },
30
30
  "dependencies": {
31
- "@video-lab/protocol": "3.0.0",
32
- "@video-lab/player-core": "3.0.0",
33
- "@video-lab/player-ui": "3.0.0"
31
+ "@video-lab/player-ui": "3.1.0",
32
+ "@video-lab/protocol": "3.1.0",
33
+ "@video-lab/player-core": "3.1.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@vitejs/plugin-vue": "^6.0.8",