@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,252 +1,252 @@
1
- .history-dark {
2
- .bottom-controls {
3
- background-color: rgba(0, 59, 64, 0.3) !important;
4
- }
5
- }
6
-
7
- .vtx-history-control {
8
- position: relative;
9
- display: flex;
10
- flex-direction: column;
11
- align-items: center;
12
- justify-content: center;
13
- background-color: #2b3d51;
14
- background-image: url('../images/empty.png');
15
- background-repeat: no-repeat;
16
- background-position: center;
17
-
18
- .bottom-controls {
19
- display: flex;
20
- align-items: center;
21
- width: 100%;
22
- height: 32px;
23
- padding: 0 12px;
24
- background-color: #243241;
25
- }
26
-
27
- .collapse-controls {
28
- position: absolute;
29
- bottom: 32px;
30
- width: 100%;
31
- background-color: #131d27;
32
-
33
- .action-bar {
34
- display: flex;
35
- justify-content: center;
36
- cursor: pointer;
37
- }
38
-
39
- .collapse-panel-container {
40
- .panels {
41
- padding: 12px 20px;
42
- margin: 0 14px 14px;
43
- background-color: #141414;
44
- border: 1px solid rgba(255, 255, 255, 0.2);
45
- border-radius: 2px;
46
-
47
- .time-panel {
48
- position: relative;
49
-
50
- .time-line-icon {
51
- position: absolute;
52
- top: -10px;
53
- }
54
-
55
- .segments {
56
- position: relative;
57
- height: 24px;
58
- overflow: hidden;
59
- .timeline {
60
- position: absolute;
61
- top: 0;
62
- bottom: 0;
63
- border: 0;
64
- width: 1px;
65
- background: #1890ff;
66
- z-index: 1;
67
- }
68
- .segment {
69
- position: absolute;
70
- height: 24px;
71
- background-color: rgba(186, 231, 255, 1);
72
- border-left: 1px solid #141414;
73
- }
74
- }
75
-
76
- .time-axis {
77
- position: relative;
78
- width: 100%;
79
-
80
- .split-lines {
81
- height: 30px;
82
-
83
- &::before {
84
- position: absolute;
85
- top: -1px;
86
- width: 100%;
87
- height: 1px;
88
- content: '';
89
- background-color: rgba(255, 255, 255, 0.65);
90
- }
91
-
92
- .line {
93
- position: absolute;
94
- color: white;
95
-
96
- .number {
97
- position: absolute;
98
- color: rgba(255, 255, 255, 0.65);
99
- transform: translate(-50%, 6px);
100
- }
101
-
102
- &::before {
103
- position: absolute;
104
- width: 1px;
105
- height: 8px;
106
- content: '';
107
- background-color: rgba(255, 255, 255, 0.65);
108
- }
109
- }
110
- }
111
- }
112
- }
113
- }
114
- }
115
- }
116
-
117
- .player-container {
118
- flex-grow: 1;
119
- width: 100%;
120
- height: 0;
121
- padding-bottom: 13px;
122
- }
123
- .vtx-spin {
124
- position: absolute;
125
- top: 50%;
126
- left: 50%;
127
- transform: translate(-50%, -50%);
128
- }
129
- }
130
-
131
- .history-url-table {
132
- width: calc(100% - 5px);
133
- border-right: 1px solid #383838;
134
- border-bottom: 1px solid #383838;
135
-
136
- .ant-table {
137
- background: var(--table-bg);
138
-
139
- .ant-table-container {
140
- &::before {
141
- display: none;
142
- }
143
-
144
- &::after {
145
- display: none;
146
- }
147
-
148
- .ant-table-header {
149
- table {
150
- border-collapse: collapse;
151
-
152
- thead {
153
- th {
154
- padding: 8px;
155
- color: rgba(255, 255, 255, 0.85);
156
- white-space: no-wrap;
157
- background-color: rgba(255, 255, 255, 0.07);
158
- border: 1px solid #383838;
159
-
160
- &::before {
161
- display: none;
162
- }
163
- }
164
- }
165
- }
166
- }
167
-
168
- .ant-table-body {
169
- &::-webkit-scrollbar {
170
- width: 10px;
171
- height: 10px;
172
- }
173
-
174
- &::-webkit-scrollbar-track {
175
- background: transparent;
176
- border-radius: 5px;
177
- }
178
-
179
- &::-webkit-scrollbar-thumb {
180
- background: rgba(255, 255, 255, 0.45);
181
- border-radius: 5px;
182
- }
183
-
184
- &::-webkit-scrollbar-corner {
185
- background-color: transparent;
186
- }
187
-
188
- &::-webkit-scrollbar-thumb:hover {
189
- background: rgba(255, 255, 255, 0.65);
190
- }
191
-
192
- table {
193
- border-collapse: collapse;
194
-
195
- tbody {
196
- tr {
197
- td {
198
- padding: 6px 8px;
199
- font-size: 14px;
200
- color: rgba(255, 255, 255, 0.65);
201
- white-space: nowrap;
202
- background-color: transparent;
203
- border: 1px solid #383838;
204
- }
205
-
206
- &.active {
207
- td {
208
- background-color: #102641;
209
- }
210
- }
211
- }
212
- }
213
-
214
- .play-btn {
215
- height: fit-content;
216
- padding: 0 8px;
217
- font-size: 14px;
218
- color: rgba(255, 255, 255, 0.65);
219
- background: rgba(255, 255, 255, 0.078);
220
- border: 1px solidrgba(255, 255, 255, 0.2);
221
- border-radius: 2px;
222
-
223
- &.active {
224
- color: #177ddc;
225
- border-color: #177ddc;
226
- }
227
- }
228
- }
229
- }
230
- }
231
- }
232
- }
233
- .theme-body {
234
- .bottom-controls {
235
- background: var(--backgroundContainer) !important;
236
- }
237
- .vtx-history-control {
238
- background: var(--backgroundContainer);
239
- }
240
- .vtx-player-header {
241
- width: 100%;
242
- padding: 5px 15px;
243
- background: var(--backgroundContainer);
244
- color: var(--borderColor);
245
- }
246
- .collapse-controls {
247
- background: var(--backgroundTable);
248
- .panels {
249
- background: var(--backgroundContainer) !important;
250
- }
251
- }
252
- }
1
+ .history-dark {
2
+ .bottom-controls {
3
+ background-color: rgba(0, 59, 64, 0.3) !important;
4
+ }
5
+ }
6
+
7
+ .vtx-history-control {
8
+ position: relative;
9
+ display: flex;
10
+ flex-direction: column;
11
+ align-items: center;
12
+ justify-content: center;
13
+ background-color: #2b3d51;
14
+ background-image: url('../images/empty.png');
15
+ background-repeat: no-repeat;
16
+ background-position: center;
17
+
18
+ .bottom-controls {
19
+ display: flex;
20
+ align-items: center;
21
+ width: 100%;
22
+ height: 32px;
23
+ padding: 0 12px;
24
+ background-color: #243241;
25
+ }
26
+
27
+ .collapse-controls {
28
+ position: absolute;
29
+ bottom: 32px;
30
+ width: 100%;
31
+ background-color: #131d27;
32
+
33
+ .action-bar {
34
+ display: flex;
35
+ justify-content: center;
36
+ cursor: pointer;
37
+ }
38
+
39
+ .collapse-panel-container {
40
+ .panels {
41
+ padding: 12px 20px;
42
+ margin: 0 14px 14px;
43
+ background-color: #141414;
44
+ border: 1px solid rgba(255, 255, 255, 0.2);
45
+ border-radius: 2px;
46
+
47
+ .time-panel {
48
+ position: relative;
49
+
50
+ .time-line-icon {
51
+ position: absolute;
52
+ top: -10px;
53
+ }
54
+
55
+ .segments {
56
+ position: relative;
57
+ height: 24px;
58
+ overflow: hidden;
59
+ .timeline {
60
+ position: absolute;
61
+ top: 0;
62
+ bottom: 0;
63
+ border: 0;
64
+ width: 1px;
65
+ background: #1890ff;
66
+ z-index: 1;
67
+ }
68
+ .segment {
69
+ position: absolute;
70
+ height: 24px;
71
+ background-color: rgba(186, 231, 255, 1);
72
+ border-left: 1px solid #141414;
73
+ }
74
+ }
75
+
76
+ .time-axis {
77
+ position: relative;
78
+ width: 100%;
79
+
80
+ .split-lines {
81
+ height: 30px;
82
+
83
+ &::before {
84
+ position: absolute;
85
+ top: -1px;
86
+ width: 100%;
87
+ height: 1px;
88
+ content: '';
89
+ background-color: rgba(255, 255, 255, 0.65);
90
+ }
91
+
92
+ .line {
93
+ position: absolute;
94
+ color: white;
95
+
96
+ .number {
97
+ position: absolute;
98
+ color: rgba(255, 255, 255, 0.65);
99
+ transform: translate(-50%, 6px);
100
+ }
101
+
102
+ &::before {
103
+ position: absolute;
104
+ width: 1px;
105
+ height: 8px;
106
+ content: '';
107
+ background-color: rgba(255, 255, 255, 0.65);
108
+ }
109
+ }
110
+ }
111
+ }
112
+ }
113
+ }
114
+ }
115
+ }
116
+
117
+ .player-container {
118
+ flex-grow: 1;
119
+ width: 100%;
120
+ height: 0;
121
+ padding-bottom: 13px;
122
+ }
123
+ .vtx-spin {
124
+ position: absolute;
125
+ top: 50%;
126
+ left: 50%;
127
+ transform: translate(-50%, -50%);
128
+ }
129
+ }
130
+
131
+ .history-url-table {
132
+ width: calc(100% - 5px);
133
+ border-right: 1px solid #383838;
134
+ border-bottom: 1px solid #383838;
135
+
136
+ .ant-table {
137
+ background: var(--table-bg);
138
+
139
+ .ant-table-container {
140
+ &::before {
141
+ display: none;
142
+ }
143
+
144
+ &::after {
145
+ display: none;
146
+ }
147
+
148
+ .ant-table-header {
149
+ table {
150
+ border-collapse: collapse;
151
+
152
+ thead {
153
+ th {
154
+ padding: 8px;
155
+ color: rgba(255, 255, 255, 0.85);
156
+ white-space: no-wrap;
157
+ background-color: rgba(255, 255, 255, 0.07);
158
+ border: 1px solid #383838;
159
+
160
+ &::before {
161
+ display: none;
162
+ }
163
+ }
164
+ }
165
+ }
166
+ }
167
+
168
+ .ant-table-body {
169
+ &::-webkit-scrollbar {
170
+ width: 10px;
171
+ height: 10px;
172
+ }
173
+
174
+ &::-webkit-scrollbar-track {
175
+ background: transparent;
176
+ border-radius: 5px;
177
+ }
178
+
179
+ &::-webkit-scrollbar-thumb {
180
+ background: rgba(255, 255, 255, 0.45);
181
+ border-radius: 5px;
182
+ }
183
+
184
+ &::-webkit-scrollbar-corner {
185
+ background-color: transparent;
186
+ }
187
+
188
+ &::-webkit-scrollbar-thumb:hover {
189
+ background: rgba(255, 255, 255, 0.65);
190
+ }
191
+
192
+ table {
193
+ border-collapse: collapse;
194
+
195
+ tbody {
196
+ tr {
197
+ td {
198
+ padding: 6px 8px;
199
+ font-size: 14px;
200
+ color: rgba(255, 255, 255, 0.65);
201
+ white-space: nowrap;
202
+ background-color: transparent;
203
+ border: 1px solid #383838;
204
+ }
205
+
206
+ &.active {
207
+ td {
208
+ background-color: #102641;
209
+ }
210
+ }
211
+ }
212
+ }
213
+
214
+ .play-btn {
215
+ height: fit-content;
216
+ padding: 0 8px;
217
+ font-size: 14px;
218
+ color: rgba(255, 255, 255, 0.65);
219
+ background: rgba(255, 255, 255, 0.078);
220
+ border: 1px solidrgba(255, 255, 255, 0.2);
221
+ border-radius: 2px;
222
+
223
+ &.active {
224
+ color: #177ddc;
225
+ border-color: #177ddc;
226
+ }
227
+ }
228
+ }
229
+ }
230
+ }
231
+ }
232
+ }
233
+ .theme-body {
234
+ .bottom-controls {
235
+ background: var(--backgroundContainer) !important;
236
+ }
237
+ .vtx-history-control {
238
+ background: var(--backgroundContainer);
239
+ }
240
+ .vtx-player-header {
241
+ width: 100%;
242
+ padding: 5px 15px;
243
+ background: var(--backgroundContainer);
244
+ color: var(--borderColor);
245
+ }
246
+ .collapse-controls {
247
+ background: var(--backgroundTable);
248
+ .panels {
249
+ background: var(--backgroundContainer) !important;
250
+ }
251
+ }
252
+ }