@vtx/player 1.7.12 → 1.7.14

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.
Files changed (144) hide show
  1. package/README.md +2 -2
  2. package/lib/api/fetch.js +62 -91
  3. package/lib/api/fetch.js.map +1 -1
  4. package/lib/api/index.js +18 -63
  5. package/lib/api/index.js.map +1 -1
  6. package/lib/api/types.d.ts +6 -6
  7. package/lib/bd/PlayerManager.js +38 -68
  8. package/lib/bd/PlayerManager.js.map +1 -1
  9. package/lib/bill-player/index.d.ts +1 -1
  10. package/lib/bill-player/index.js +66 -121
  11. package/lib/bill-player/index.js.map +1 -1
  12. package/lib/bill-player/style/css.js +0 -9
  13. package/lib/bill-player/style/css.js.map +1 -1
  14. package/lib/bill-player/style/index.js +0 -9
  15. package/lib/bill-player/style/index.js.map +1 -1
  16. package/lib/bill-player/style/index.less +297 -297
  17. package/lib/components/set-tag-video/index.js +6 -34
  18. package/lib/components/set-tag-video/index.js.map +1 -1
  19. package/lib/components/set-tag-video/style/css.js.map +1 -1
  20. package/lib/components/set-tag-video/style/index.js.map +1 -1
  21. package/lib/components/set-tag-video/style/index.less +125 -125
  22. package/lib/components/split-screen/index.d.ts +1 -1
  23. package/lib/components/split-screen/index.js +3 -14
  24. package/lib/components/split-screen/index.js.map +1 -1
  25. package/lib/components/split-screen/style/css.js.map +1 -1
  26. package/lib/components/split-screen/style/index.js.map +1 -1
  27. package/lib/components/tag-video/index.js +10 -38
  28. package/lib/components/tag-video/index.js.map +1 -1
  29. package/lib/components/tag-video/style/css.js.map +1 -1
  30. package/lib/components/tag-video/style/index.js.map +1 -1
  31. package/lib/components/tag-video/style/index.less +69 -69
  32. package/lib/components/video-scale/index.d.ts +1 -1
  33. package/lib/components/video-scale/index.js +2 -9
  34. package/lib/components/video-scale/index.js.map +1 -1
  35. package/lib/components/video-scale/style/css.js.map +1 -1
  36. package/lib/components/video-scale/style/index.js.map +1 -1
  37. package/lib/context/index.js +0 -4
  38. package/lib/context/index.js.map +1 -1
  39. package/lib/controls/index.d.ts +11 -11
  40. package/lib/controls/index.js +46 -108
  41. package/lib/controls/index.js.map +1 -1
  42. package/lib/controls/style/css.js +0 -5
  43. package/lib/controls/style/css.js.map +1 -1
  44. package/lib/controls/style/index.js +0 -5
  45. package/lib/controls/style/index.js.map +1 -1
  46. package/lib/controls/style/index.less +188 -188
  47. package/lib/h264/PlayerManager.js +18 -27
  48. package/lib/h264/PlayerManager.js.map +1 -1
  49. package/lib/history-control/index.d.ts +2 -2
  50. package/lib/history-control/index.js +61 -121
  51. package/lib/history-control/index.js.map +1 -1
  52. package/lib/history-control/style/css.js +0 -6
  53. package/lib/history-control/style/css.js.map +1 -1
  54. package/lib/history-control/style/index.js +0 -6
  55. package/lib/history-control/style/index.js.map +1 -1
  56. package/lib/history-control/style/index.less +252 -252
  57. package/lib/history-control-v2/components/grid-item/index.js +38 -77
  58. package/lib/history-control-v2/components/grid-item/index.js.map +1 -1
  59. package/lib/history-control-v2/components/panel/index.js +44 -114
  60. package/lib/history-control-v2/components/panel/index.js.map +1 -1
  61. package/lib/history-control-v2/context.js +0 -2
  62. package/lib/history-control-v2/context.js.map +1 -1
  63. package/lib/history-control-v2/index.d.ts +4 -4
  64. package/lib/history-control-v2/index.js +97 -166
  65. package/lib/history-control-v2/index.js.map +1 -1
  66. package/lib/history-control-v2/style/css.js +0 -10
  67. package/lib/history-control-v2/style/css.js.map +1 -1
  68. package/lib/history-control-v2/style/index.js +0 -10
  69. package/lib/history-control-v2/style/index.js.map +1 -1
  70. package/lib/history-control-v2/style/index.less +437 -437
  71. package/lib/history-control-v2/utils.js +1 -21
  72. package/lib/history-control-v2/utils.js.map +1 -1
  73. package/lib/history-player/index.d.ts +1 -1
  74. package/lib/history-player/index.js +146 -205
  75. package/lib/history-player/index.js.map +1 -1
  76. package/lib/history-player/style/css.js +0 -3
  77. package/lib/history-player/style/css.js.map +1 -1
  78. package/lib/history-player/style/index.js +0 -3
  79. package/lib/history-player/style/index.js.map +1 -1
  80. package/lib/history-player/style/index.less +102 -102
  81. package/lib/hooks/useSettings.js +1 -6
  82. package/lib/hooks/useSettings.js.map +1 -1
  83. package/lib/icc/PlayerManager.js +26 -57
  84. package/lib/icc/PlayerManager.js.map +1 -1
  85. package/lib/icc/api.d.ts +0 -68
  86. package/lib/icc/api.js +2 -16
  87. package/lib/icc/api.js.map +1 -1
  88. package/lib/icons/index.d.ts +36 -36
  89. package/lib/icons/index.js +23 -171
  90. package/lib/icons/index.js.map +1 -1
  91. package/lib/icons/index.less +32 -32
  92. package/lib/index.js +0 -10
  93. package/lib/index.js.map +1 -1
  94. package/lib/live-channel-player/index.d.ts +1 -1
  95. package/lib/live-channel-player/index.js +32 -67
  96. package/lib/live-channel-player/index.js.map +1 -1
  97. package/lib/live-channel-player/style/css.js +0 -1
  98. package/lib/live-channel-player/style/css.js.map +1 -1
  99. package/lib/live-channel-player/style/index.js +0 -1
  100. package/lib/live-channel-player/style/index.js.map +1 -1
  101. package/lib/live-control/index.d.ts +2 -2
  102. package/lib/live-control/index.js +36 -86
  103. package/lib/live-control/index.js.map +1 -1
  104. package/lib/live-control/style/css.js +0 -4
  105. package/lib/live-control/style/css.js.map +1 -1
  106. package/lib/live-control/style/index.js +0 -4
  107. package/lib/live-control/style/index.js.map +1 -1
  108. package/lib/live-control/style/index.less +99 -99
  109. package/lib/live-control-v2/index.d.ts +3 -3
  110. package/lib/live-control-v2/index.js +109 -141
  111. package/lib/live-control-v2/index.js.map +1 -1
  112. package/lib/live-control-v2/style/css.js +0 -7
  113. package/lib/live-control-v2/style/css.js.map +1 -1
  114. package/lib/live-control-v2/style/index.js +0 -7
  115. package/lib/live-control-v2/style/index.js.map +1 -1
  116. package/lib/live-control-v2/style/index.less +192 -192
  117. package/lib/live-player/index.d.ts +2 -0
  118. package/lib/live-player/index.js +96 -136
  119. package/lib/live-player/index.js.map +1 -1
  120. package/lib/live-player/style/css.js +0 -2
  121. package/lib/live-player/style/css.js.map +1 -1
  122. package/lib/live-player/style/index.js +0 -2
  123. package/lib/live-player/style/index.js.map +1 -1
  124. package/lib/live-player/style/index.less +75 -75
  125. package/lib/player/index.d.ts +1 -1
  126. package/lib/player/index.js +79 -244
  127. package/lib/player/index.js.map +1 -1
  128. package/lib/rsl/PlayerManager.js +18 -64
  129. package/lib/rsl/PlayerManager.js.map +1 -1
  130. package/lib/typings/@vtx/utils/index.d.ts +28 -28
  131. package/lib/typings/h5player.d.ts +146 -146
  132. package/lib/typings/webrtcplayer.d.ts +56 -56
  133. package/lib/typings/wsplayer.d.ts +99 -99
  134. package/lib/utils/index.d.ts +1 -1
  135. package/lib/utils/index.js +12 -91
  136. package/lib/utils/index.js.map +1 -1
  137. package/lib/vite-env.d.ts +1 -1
  138. package/lib/vtxHls/PlayerManager.js +6 -20
  139. package/lib/vtxHls/PlayerManager.js.map +1 -1
  140. package/lib/vtxHls/WhepManager.js +9 -72
  141. package/lib/vtxHls/WhepManager.js.map +1 -1
  142. package/lib/webrtc/PlayerManager.js +28 -41
  143. package/lib/webrtc/PlayerManager.js.map +1 -1
  144. package/package.json +125 -125
@@ -1,75 +1,75 @@
1
- .vtx-live-player {
2
- position: relative;
3
- display: flex;
4
- align-items: center;
5
- justify-content: center;
6
- background-color: #2b3d51;
7
- border: 1px solid transparent;
8
-
9
- .controls {
10
- position: absolute;
11
- bottom: 0;
12
- display: flex;
13
- align-items: center;
14
- width: 100%;
15
- height: 30px;
16
- padding: 0 12px;
17
- background-color: #131d27;
18
- opacity: 0;
19
- transition: opacity 0.5s;
20
-
21
- .right {
22
- margin-left: auto;
23
-
24
- > div {
25
- height: 24px;
26
- }
27
- }
28
- }
29
-
30
- &:hover {
31
- .controls {
32
- opacity: 1;
33
- }
34
- }
35
-
36
- video {
37
- width: 100%;
38
- height: 100%;
39
- object-fit: fill;
40
- }
41
-
42
- .sub-wnd {
43
- width: 100% !important;
44
- height: 100% !important;
45
- background-color: #2b3d51 !important;
46
- border: 1px solid transparent !important;
47
- }
48
-
49
- .error-container {
50
- position: absolute;
51
- top: 50%;
52
- left: 50%;
53
- display: flex;
54
- flex-direction: column;
55
- align-items: center;
56
- transform: translate(-50%, -50%);
57
-
58
- .text {
59
- margin: 20px 0;
60
- font-size: 14px;
61
- color: rgb(255 255 255 / 65%);
62
- }
63
-
64
- img {
65
- cursor: pointer;
66
- }
67
- }
68
-
69
- .loading-container {
70
- position: absolute;
71
- top: 50%;
72
- left: 50%;
73
- transform: translate(-50%, -50%);
74
- }
75
- }
1
+ .vtx-live-player {
2
+ position: relative;
3
+ display: flex;
4
+ align-items: center;
5
+ justify-content: center;
6
+ background-color: #2b3d51;
7
+ border: 1px solid transparent;
8
+
9
+ .controls {
10
+ position: absolute;
11
+ bottom: 0;
12
+ display: flex;
13
+ align-items: center;
14
+ width: 100%;
15
+ height: 30px;
16
+ padding: 0 12px;
17
+ background-color: #131d27;
18
+ opacity: 0;
19
+ transition: opacity 0.5s;
20
+
21
+ .right {
22
+ margin-left: auto;
23
+
24
+ > div {
25
+ height: 24px;
26
+ }
27
+ }
28
+ }
29
+
30
+ &:hover {
31
+ .controls {
32
+ opacity: 1;
33
+ }
34
+ }
35
+
36
+ video {
37
+ width: 100%;
38
+ height: 100%;
39
+ object-fit: fill;
40
+ }
41
+
42
+ .sub-wnd {
43
+ width: 100% !important;
44
+ height: 100% !important;
45
+ background-color: #2b3d51 !important;
46
+ border: 1px solid transparent !important;
47
+ }
48
+
49
+ .error-container {
50
+ position: absolute;
51
+ top: 50%;
52
+ left: 50%;
53
+ display: flex;
54
+ flex-direction: column;
55
+ align-items: center;
56
+ transform: translate(-50%, -50%);
57
+
58
+ .text {
59
+ margin: 20px 0;
60
+ font-size: 14px;
61
+ color: rgb(255 255 255 / 65%);
62
+ }
63
+
64
+ img {
65
+ cursor: pointer;
66
+ }
67
+ }
68
+
69
+ .loading-container {
70
+ position: absolute;
71
+ top: 50%;
72
+ left: 50%;
73
+ transform: translate(-50%, -50%);
74
+ }
75
+ }
@@ -7,7 +7,7 @@ declare global {
7
7
  }
8
8
  }
9
9
  /** 视频流格式 */
10
- export declare type VideoType = 'flv' | 'hls' | 'hk_ws' | 'hkcar_ws' | 'icc_ws' | 'webrtc' | 'h264' | 'bd' | 'mp4' | 'vtxhls' | string;
10
+ export type VideoType = 'flv' | 'hls' | 'hk_ws' | 'hkcar_ws' | 'icc_ws' | 'webrtc' | 'h264' | 'bd' | 'mp4' | 'vtxhls' | string;
11
11
  interface ConstructorParams {
12
12
  url?: string;
13
13
  /** 设备id */