@ray-js/ipc-player-integration 0.0.70-beta.0 → 0.0.71-beta.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.
- package/README.md +6 -0
- package/lib/ctx/ctx.js +12 -17
- package/lib/ctx/ctx.test.js +54 -19
- package/lib/ctx/intercom.test.d.ts +1 -0
- package/lib/ctx/intercom.test.js +85 -0
- package/lib/index.d.ts +4 -0
- package/lib/index.js +3 -1
- package/lib/renderer/capabilities.d.ts +8 -0
- package/lib/renderer/capabilities.js +19 -0
- package/lib/renderer/context.d.ts +5 -0
- package/lib/renderer/context.js +6 -0
- package/lib/renderer/directionControl.d.ts +6 -0
- package/lib/renderer/directionControl.js +3 -0
- package/lib/renderer/font-manifest.json +9 -0
- package/lib/renderer/font.less +5 -0
- package/lib/renderer/glyphs.d.ts +1 -0
- package/lib/renderer/glyphs.js +256 -0
- package/lib/renderer/index.module.less +48 -0
- package/lib/renderer/overlay.d.ts +6 -0
- package/lib/renderer/overlay.js +18 -0
- package/lib/renderer/ptzZoom.d.ts +6 -0
- package/lib/renderer/ptzZoom.js +3 -0
- package/lib/renderer/text.d.ts +4 -0
- package/lib/renderer/text.js +32 -0
- package/lib/renderer/text.module.less +4 -0
- package/lib/renderer/viewport.d.ts +7 -0
- package/lib/renderer/viewport.js +24 -0
- package/lib/res/lynx-signal/index.d.ts +1 -0
- package/lib/res/lynx-signal/index.js +22 -0
- package/lib/res/lynx-signal/signalFour0.png +0 -0
- package/lib/res/lynx-signal/signalFour1.png +0 -0
- package/lib/res/lynx-signal/signalFour2.png +0 -0
- package/lib/res/lynx-signal/signalFour3.png +0 -0
- package/lib/res/lynx-signal/signalFour4.png +0 -0
- package/lib/res/lynx-signal/signalThree0.png +0 -0
- package/lib/res/lynx-signal/signalThree1.png +0 -0
- package/lib/res/lynx-signal/signalThree2.png +0 -0
- package/lib/res/lynx-signal/signalThree3.png +0 -0
- package/lib/res/player-charging.png +0 -0
- package/lib/res/player-more-arrow.png +0 -0
- package/lib/res/player-solar.png +0 -0
- package/lib/ui/bottomLeftContent.js +121 -53
- package/lib/ui/bottomRightContent.js +10 -5
- package/lib/ui/scrollHintArrow.d.ts +23 -0
- package/lib/ui/scrollHintArrow.js +83 -0
- package/lib/ui/topLeftContent.js +4 -2
- package/lib/ui/topRightContent.js +4 -2
- package/lib/ui/ui.d.ts +5 -0
- package/lib/ui/ui.js +46 -23
- package/lib/widgets/battery/battery.js +7 -5
- package/lib/widgets/battery/batteryFull.js +7 -5
- package/lib/widgets/battery/statusIcon.d.ts +6 -0
- package/lib/widgets/battery/statusIcon.js +36 -0
- package/lib/widgets/battery/statusIcon.less +24 -0
- package/lib/widgets/captureResult/captureResult.js +2 -1
- package/lib/widgets/captureToast/captureToast.d.ts +10 -0
- package/lib/widgets/captureToast/captureToast.js +58 -0
- package/lib/widgets/floodlight/floodlight.js +2 -1
- package/lib/widgets/flowLowTip/flowLowTip.js +2 -1
- package/lib/widgets/fullScreen/fullScreen.js +2 -1
- package/lib/widgets/fullScreen/fullTravelRouteControl.d.ts +1 -1
- package/lib/widgets/fullScreen/fullTravelRouteControl.js +1 -1
- package/lib/widgets/fullScreen/verticalScreen.js +2 -1
- package/lib/widgets/moveInteractiveControl/controlButton.js +2 -1
- package/lib/widgets/moveInteractiveControl/moveInteractiveControlUI.js +16 -5
- package/lib/widgets/moveInteractiveControl/moveInteractiveControlUI.less +24 -4
- package/lib/widgets/multiCamera/landscapeTip.js +8 -2
- package/lib/widgets/multiCamera/moveablePtzControl.js +5 -3
- package/lib/widgets/multiCamera/multiPtz.js +2 -1
- package/lib/widgets/multiCamera/ptzMoveableTip.js +8 -2
- package/lib/widgets/multiCamera/switchLayout.js +2 -1
- package/lib/widgets/multiCamera/tileMultiPtz.js +2 -1
- package/lib/widgets/multiCamera/tileSwitchLayout.js +2 -1
- package/lib/widgets/multiCamera/tileTip.js +8 -2
- package/lib/widgets/muted/muted.js +2 -1
- package/lib/widgets/muted/muted.test.js +66 -52
- package/lib/widgets/ptz/ptz.js +2 -1
- package/lib/widgets/ptz/ptzControl.js +4 -3
- package/lib/widgets/ptzControlTip/ptzControlTip.js +9 -4
- package/lib/widgets/ptzControlTip/ptzControlTip.less +6 -0
- package/lib/widgets/realTimeMagnification/realTimeMagnification.js +2 -1
- package/lib/widgets/recordVideo/recordVideo.js +47 -169
- package/lib/widgets/recordVideo/recordVideo.lifecycle.test.js +4 -2
- package/lib/widgets/recordVideo/recordVideo.test.js +169 -2
- package/lib/widgets/recordVideo/recordVideoTimer.d.ts +3 -0
- package/lib/widgets/recordVideo/recordVideoTimer.js +26 -0
- package/lib/widgets/resolution/fullResolutionControl.js +29 -19
- package/lib/widgets/resolution/resolution.js +3 -2
- package/lib/widgets/screenshot/screenshot.js +48 -122
- package/lib/widgets/screenshot/screenshot.permissions.test.d.ts +1 -0
- package/lib/widgets/screenshot/screenshot.permissions.test.js +137 -0
- package/lib/widgets/screenshot/screenshot.test.js +108 -113
- package/lib/widgets/signal4G/signal4G.js +4 -1
- package/lib/widgets/siren/siren.js +2 -1
- package/lib/widgets/tempHumidity/tempHumidity.js +2 -1
- package/lib/widgets/toggleVerticalFull/toggleVerticalFull.js +2 -1
- package/lib/widgets/trialBadge/index.js +8 -3
- package/lib/widgets/trialBadge/index.less +24 -0
- package/lib/widgets/tryExperience/tryExperience.js +2 -1
- package/lib/widgets/videoBitKBP/videoBitKBP.js +2 -1
- package/lib/widgets/voiceIntercom/voiceIntercom.js +57 -81
- package/lib/widgets/voiceIntercom/voiceIntercom.less +35 -0
- package/lib/widgets/voiceIntercom/voiceIntercom.test.d.ts +1 -0
- package/lib/widgets/voiceIntercom/voiceIntercom.test.js +135 -0
- package/lib/widgets/zoomTurntable/lynxDockLayout.d.ts +6 -0
- package/lib/widgets/zoomTurntable/lynxDockLayout.js +30 -0
- package/lib/widgets/zoomTurntable/turntable/index.d.ts +5 -7
- package/lib/widgets/zoomTurntable/turntable/index.js +3 -1
- package/lib/widgets/zoomTurntable/turntable/lynx.d.ts +5 -0
- package/lib/widgets/zoomTurntable/turntable/lynx.js +273 -0
- package/lib/widgets/zoomTurntable/turntable/lynx.less +9 -0
- package/lib/widgets/zoomTurntable/turntable/lynxModel.d.ts +37 -0
- package/lib/widgets/zoomTurntable/turntable/lynxModel.js +122 -0
- package/lib/widgets/zoomTurntable/turntable/lynxPaint.d.ts +3 -0
- package/lib/widgets/zoomTurntable/turntable/lynxPaint.js +36 -0
- package/lib/widgets/zoomTurntable/zoomTurntableDock.d.ts +5 -3
- package/lib/widgets/zoomTurntable/zoomTurntableDock.js +4 -4
- package/lib/widgets/zoomTurntable/zoomTurntableEntry.js +32 -19
- package/lib/widgets/zoomTurntable/zoomTurntableTip.js +17 -3
- package/package.json +15 -7
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import "core-js/modules/esnext.iterator.constructor.js";
|
|
2
|
+
import "core-js/modules/esnext.iterator.find.js";
|
|
3
|
+
import "core-js/modules/esnext.iterator.map.js";
|
|
4
|
+
// Generated from the component-owned iconfont.json; keep font and codepoints paired.
|
|
5
|
+
const glyphs = {
|
|
6
|
+
'icon-panel-solar': '',
|
|
7
|
+
'icon-panel-a-rongqi722': '',
|
|
8
|
+
'icon-panel-favorite': '',
|
|
9
|
+
'icon-panel-album1': '',
|
|
10
|
+
'icon-panel-grain': '',
|
|
11
|
+
'icon-panel-pump': '',
|
|
12
|
+
'icon-panel-favorites2': '',
|
|
13
|
+
'icon-panel-bird-identification': '',
|
|
14
|
+
'icon-panel-pir-close': '',
|
|
15
|
+
'icon-panel-pir-open': '',
|
|
16
|
+
'icon-panel-Access-Stop': '',
|
|
17
|
+
'icon-panel-uvb1': '',
|
|
18
|
+
'icon-panel-uva': '',
|
|
19
|
+
'icon-panel-circle': '',
|
|
20
|
+
'icon-panel-heat-light': '',
|
|
21
|
+
'icon-panel-exhaust': '',
|
|
22
|
+
'icon-panel-atomization': '',
|
|
23
|
+
'icon-panel-spray': '',
|
|
24
|
+
'icon-panel-intake': '',
|
|
25
|
+
'icon-panel-heat-pad': '',
|
|
26
|
+
'icon-panel-location': '',
|
|
27
|
+
'icon-panel-weight': '',
|
|
28
|
+
'icon-panel-energy': '',
|
|
29
|
+
'icon-panel-air-setting': '',
|
|
30
|
+
'icon-panel-a-zu1': '',
|
|
31
|
+
'icon-panel-zhuapai2': '',
|
|
32
|
+
'icon-panel-zhuapai1': '',
|
|
33
|
+
'icon-panel-zhuapai': '',
|
|
34
|
+
'icon-panel-xingxing_mian': '',
|
|
35
|
+
'icon-panel-anti-flicker-off': '',
|
|
36
|
+
'icon-panel-left-arrow-center': '',
|
|
37
|
+
'icon-panel-v-alarm-light-siren': '',
|
|
38
|
+
'icon-panel-v-alarm-light': '',
|
|
39
|
+
'icon-panel-stream-standard': '',
|
|
40
|
+
'icon-panel-feature-track': '',
|
|
41
|
+
'icon-panel-v-alarm-siren': '',
|
|
42
|
+
'icon-panel-v-alarm-off': '',
|
|
43
|
+
'icon-panel-stream-flowing': '',
|
|
44
|
+
'icon-panel-anti-flicker': '',
|
|
45
|
+
'icon-panel-Access-Key-Password': '',
|
|
46
|
+
'icon-panel-Access-Play': '',
|
|
47
|
+
'icon-panel-plant_water_temp': '',
|
|
48
|
+
'icon-panel-plant_footer': '',
|
|
49
|
+
'icon-panel-plant_record': '',
|
|
50
|
+
'icon-panel-plant_water_level': '',
|
|
51
|
+
'icon-panel-ECzhi': '',
|
|
52
|
+
'icon-panel-plant_light': '',
|
|
53
|
+
'icon-panel-plant_main_switch': '',
|
|
54
|
+
'icon-panel-zhinenghuazhi-guanbi': '',
|
|
55
|
+
'icon-panel-next': '',
|
|
56
|
+
'icon-panel-back': '',
|
|
57
|
+
'icon-panel-pixel-emoji': '',
|
|
58
|
+
'icon-panel-erase': '',
|
|
59
|
+
'icon-panel-pencil': '',
|
|
60
|
+
'icon-panel-time': '',
|
|
61
|
+
'icon-panel-fence-empty': '',
|
|
62
|
+
'icon-panel-walk-pet-empty': '',
|
|
63
|
+
'icon-panel-vibration': '',
|
|
64
|
+
'icon-panel-shebeiluxiang': '',
|
|
65
|
+
'icon-panel-add': '',
|
|
66
|
+
'icon-panel-a-rongqi1972': '',
|
|
67
|
+
'icon-panel-nightvision-mode-black-color': '',
|
|
68
|
+
'icon-panel-nightvision-mode-true-color': '',
|
|
69
|
+
'icon-panel-nightvision-mode-color': '',
|
|
70
|
+
'icon-panel-wi-Fi': '',
|
|
71
|
+
'icon-panel-motion-tracking': '',
|
|
72
|
+
'icon-panel-optical-zoom': '',
|
|
73
|
+
'icon-panel-pip-mode': '',
|
|
74
|
+
'icon-panel-basic-shimmer': '',
|
|
75
|
+
'icon-panel-basic-nightvision-close': '',
|
|
76
|
+
'icon-panel-basic-nightvision-open': '',
|
|
77
|
+
'icon-panel-nightvision-mode-ir': '',
|
|
78
|
+
'icon-panel-nightvision-mode-auto': '',
|
|
79
|
+
'icon-panel-suo': '',
|
|
80
|
+
'icon-panel-jingdi': '',
|
|
81
|
+
'icon-panel-deng': '',
|
|
82
|
+
'icon-panel-xiazai': '',
|
|
83
|
+
'icon-panel-fenxiang': '',
|
|
84
|
+
'icon-panel-a-zu1032': '',
|
|
85
|
+
'icon-panel-jilu': '',
|
|
86
|
+
'icon-panel-zujifenxiang': '',
|
|
87
|
+
'icon-panel-zuji': '',
|
|
88
|
+
'icon-panel-chongwudangan': '',
|
|
89
|
+
'icon-panel-liuchong': '',
|
|
90
|
+
'icon-panel-weilan': '',
|
|
91
|
+
'icon-panel-WER': '',
|
|
92
|
+
'icon-panel-infrared-night-vision': '',
|
|
93
|
+
'icon-panel-night-vision': '',
|
|
94
|
+
'icon-panel-Access-Mobile1': '',
|
|
95
|
+
'icon-panel-Access-QuickReply': '',
|
|
96
|
+
'icon-panel-Access-Key-FaceID2': '',
|
|
97
|
+
'icon-panel-Access-NoBlock': '',
|
|
98
|
+
'icon-panel-Access-Password-View': '',
|
|
99
|
+
'icon-panel-Access-Door': '',
|
|
100
|
+
'icon-panel-Access-Camera': '',
|
|
101
|
+
'icon-panel-Access-Member': '',
|
|
102
|
+
'icon-panel-Access-Password-Hide': '',
|
|
103
|
+
'icon-panel-a-Access-AIGuardian': '',
|
|
104
|
+
'icon-panel-Access-Key-Fingerprint': '',
|
|
105
|
+
'icon-panel-Access-Send': '',
|
|
106
|
+
'icon-panel-Access-Password-Clear': '',
|
|
107
|
+
'icon-panel-Access-Notification-large': '',
|
|
108
|
+
'icon-panel-Access-Intercom-large': '',
|
|
109
|
+
'icon-panel-Access-Brightness': '',
|
|
110
|
+
'icon-panel-Access-TempAccess-large': '',
|
|
111
|
+
'icon-panel-Access-Undo': '',
|
|
112
|
+
'icon-panel-Access-Key-Card': '',
|
|
113
|
+
'icon-panel-Access-Replay': '',
|
|
114
|
+
'icon-panel-Access-Copy': '',
|
|
115
|
+
'icon-panel-tip-right-arrow': '',
|
|
116
|
+
'icon-panel-tip-circle': '',
|
|
117
|
+
'icon-panel-night-light': '',
|
|
118
|
+
'icon-panel-feed-reminder': '',
|
|
119
|
+
'icon-panel-baby-core': '',
|
|
120
|
+
'icon-panel-Access-door-close-small': '',
|
|
121
|
+
'icon-panel-door-close-large': '',
|
|
122
|
+
'icon-panel-door-open-small': '',
|
|
123
|
+
'icon-panel-door-open-large': '',
|
|
124
|
+
'icon-panel-common-error': '',
|
|
125
|
+
'icon-panel-traffic-top-up': '',
|
|
126
|
+
'icon-panel-elevator-up': '',
|
|
127
|
+
'icon-panel-elevator-down': '',
|
|
128
|
+
'icon-panel-access-elevator': '',
|
|
129
|
+
'icon-panel-elevator-updown': '',
|
|
130
|
+
'icon-panel-traffic-unauthorized': '',
|
|
131
|
+
'icon-panel-traffic-low-data': '',
|
|
132
|
+
'icon-panel-traffic-not-obtain': '',
|
|
133
|
+
'icon-panel-swimming-anomaly': '',
|
|
134
|
+
'icon-panel-feed-fish': '',
|
|
135
|
+
'icon-panel-water-temp': '',
|
|
136
|
+
'icon-panel-fun-fish-TV': '',
|
|
137
|
+
'icon-panel-fish-care-expert': '',
|
|
138
|
+
'icon-panel-water-quality': '',
|
|
139
|
+
'icon-panel-swimming-issue': '',
|
|
140
|
+
'icon-panel-fish-anomaly': '',
|
|
141
|
+
'icon-panel-a-AI-fish-healthcheck': '',
|
|
142
|
+
'icon-panel-favorites1': '',
|
|
143
|
+
'icon-panel-belly-up1': '',
|
|
144
|
+
'icon-panel-favorite1': '',
|
|
145
|
+
'icon-panel-replay1': '',
|
|
146
|
+
'icon-panel-gun-ball': '',
|
|
147
|
+
'icon-panel-thumbnail': '',
|
|
148
|
+
'icon-panel-landscape-thumbnail': '',
|
|
149
|
+
'icon-panel-expand': '',
|
|
150
|
+
'icon-panel-tile': '',
|
|
151
|
+
'icon-panel-landscape-grid': '',
|
|
152
|
+
'icon-panel-pin': '',
|
|
153
|
+
'icon-panel-arrow-expand': '',
|
|
154
|
+
'icon-panel-window-close': '',
|
|
155
|
+
'icon-panel-landscape-tile': '',
|
|
156
|
+
'icon-panel-pip': '',
|
|
157
|
+
'icon-panel-landscape-new': '',
|
|
158
|
+
'icon-panel-collapse': '',
|
|
159
|
+
'icon-panel-duoxuan': '',
|
|
160
|
+
'icon-panel-shanchu': '',
|
|
161
|
+
'icon-panel-shaixuan': '',
|
|
162
|
+
'icon-panel-close-voice': '',
|
|
163
|
+
'icon-panel-cruise-plan': '',
|
|
164
|
+
'icon-panel-stop-record': '',
|
|
165
|
+
'icon-panel-find-pet': '',
|
|
166
|
+
'icon-panel-pet-voice-custom': '',
|
|
167
|
+
'icon-panel-voice-list': '',
|
|
168
|
+
'icon-panel-again': '',
|
|
169
|
+
'icon-panel-select': '',
|
|
170
|
+
'icon-panel-enable-voice': '',
|
|
171
|
+
'icon-panel-not-disturb': '',
|
|
172
|
+
'icon-panel-pet-voice': '',
|
|
173
|
+
'icon-panel-verify-access': '',
|
|
174
|
+
'icon-panel-access-list': '',
|
|
175
|
+
'icon-panel-access-control': '',
|
|
176
|
+
'icon-panel-access-schedule': '',
|
|
177
|
+
'icon-panel-always-open': '',
|
|
178
|
+
'icon-panel-bidirectional-access': '',
|
|
179
|
+
'icon-panel-open-door': '',
|
|
180
|
+
'icon-panel-locked': '',
|
|
181
|
+
'icon-panel-exit-only': '',
|
|
182
|
+
'icon-panel-close-door': '',
|
|
183
|
+
'icon-panel-entry-only': '',
|
|
184
|
+
'icon-panel-feature-siren': '',
|
|
185
|
+
'icon-panel-shared-permission': '',
|
|
186
|
+
'icon-panel-ptz_collect_add': '',
|
|
187
|
+
'icon-panel-ptz-collect': '',
|
|
188
|
+
'icon-panel-success': '',
|
|
189
|
+
'icon-panel-failure': '',
|
|
190
|
+
'icon-panel-pause': '',
|
|
191
|
+
'icon-panel-recharge-1': '',
|
|
192
|
+
'icon-panel-playing': '',
|
|
193
|
+
'icon-panel-charging': '',
|
|
194
|
+
'icon-panel-record': '',
|
|
195
|
+
'icon-panel-switch': '',
|
|
196
|
+
'icon-panel-tab-remote-control': '',
|
|
197
|
+
'icon-panel-tab-path': '',
|
|
198
|
+
'icon-panel-feature-playback': '',
|
|
199
|
+
'icon-panel-feature-message': '',
|
|
200
|
+
'icon-panel-laser-pointer': '',
|
|
201
|
+
'icon-panel-close': '',
|
|
202
|
+
'icon-panel-move-control-interactive': '',
|
|
203
|
+
'icon-panel-move-control-waltz': '',
|
|
204
|
+
'icon-panel-move-control-8': '',
|
|
205
|
+
'icon-panel-move-control-p-steering': '',
|
|
206
|
+
'icon-panel-move-control-straight-line': '',
|
|
207
|
+
'icon-panel-move-control-rotate-place': '',
|
|
208
|
+
'icon-panel-move-control-chacha': '',
|
|
209
|
+
'icon-panel-tange1': '',
|
|
210
|
+
'icon-panel-move-control-big-rotation': '',
|
|
211
|
+
'icon-panel-move-control-wave': '',
|
|
212
|
+
'icon-panel-move-control-z': '',
|
|
213
|
+
'icon-panel-move-control-rotation': '',
|
|
214
|
+
'icon-panel-yuyin': '',
|
|
215
|
+
'icon-panel-cloud-storage': '',
|
|
216
|
+
'icon-panel-talking': '',
|
|
217
|
+
'icon-panel-record-play': '',
|
|
218
|
+
'icon-panel-auto-follow': '',
|
|
219
|
+
'icon-panel-auto-recharge': '',
|
|
220
|
+
'icon-panel-add-collect': '',
|
|
221
|
+
'icon-panel-edit': '',
|
|
222
|
+
'icon-panel-record-stop': '',
|
|
223
|
+
'icon-panel-ptz-arrow': '',
|
|
224
|
+
'icon-panel-zoom-out': '',
|
|
225
|
+
'icon-panel-zoom-in': '',
|
|
226
|
+
'icon-panel-cross-add': '',
|
|
227
|
+
'icon-panel-siren': '',
|
|
228
|
+
'icon-panel-lullaby': '',
|
|
229
|
+
'icon-panel-cruise': '',
|
|
230
|
+
'icon-panel-wdr': '',
|
|
231
|
+
'icon-panel-lock': '',
|
|
232
|
+
'icon-panel-floodlight': '',
|
|
233
|
+
'icon-panel-private': '',
|
|
234
|
+
'icon-panel-list-checked': '',
|
|
235
|
+
'icon-panel-right-arrow': '',
|
|
236
|
+
'icon-panel-voice-change': '',
|
|
237
|
+
'icon-panel-more': '',
|
|
238
|
+
'icon-panel-collect-point': '',
|
|
239
|
+
'icon-panel-album': '',
|
|
240
|
+
'icon-panel-mute-off': '',
|
|
241
|
+
'icon-panel-left-arrow': '',
|
|
242
|
+
'icon-panel-delete': '',
|
|
243
|
+
'icon-panel-ptz': '',
|
|
244
|
+
'icon-panel-playback': '',
|
|
245
|
+
'icon-panel-message': '',
|
|
246
|
+
'icon-panel-feature-settings': '',
|
|
247
|
+
'icon-panel-humidity': '',
|
|
248
|
+
'icon-panel-temperature': '',
|
|
249
|
+
'icon-panel-screenshot': '',
|
|
250
|
+
'icon-panel-mute-on': '',
|
|
251
|
+
'icon-panel-landscape': ''
|
|
252
|
+
};
|
|
253
|
+
export const glyphForClassName = function () {
|
|
254
|
+
let className = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
255
|
+
return className.split(/\s+/).map(name => glyphs[name]).find(Boolean) || '';
|
|
256
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
.root {
|
|
2
|
+
width: 100%;
|
|
3
|
+
min-width: 0;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
// More specific than legacy .ipc-player-content .*-hide/show, even if loaded first.
|
|
7
|
+
// Never collapse or translate the native bar: fade in-place within the video bounds.
|
|
8
|
+
&:global(.ipc-player-content) {
|
|
9
|
+
:global(.ipc-player-top-content),
|
|
10
|
+
:global(.ipc-player-bottom-content) {
|
|
11
|
+
transform: none;
|
|
12
|
+
transition: opacity 0.3s ease;
|
|
13
|
+
}
|
|
14
|
+
:global(.ipc-player-top-content-hide),
|
|
15
|
+
:global(.ipc-player-bottom-content-hide) {
|
|
16
|
+
opacity: 0;
|
|
17
|
+
pointer-events: none;
|
|
18
|
+
}
|
|
19
|
+
:global(.ipc-player-top-content-show),
|
|
20
|
+
:global(.ipc-player-bottom-content-show) {
|
|
21
|
+
opacity: 1;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
:global(.ipc-player-top-content) {
|
|
25
|
+
background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 100%);
|
|
26
|
+
}
|
|
27
|
+
:global(.ipc-player-bottom-content) {
|
|
28
|
+
background-image: linear-gradient(360deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 100%);
|
|
29
|
+
}
|
|
30
|
+
:global(.ipc-player-bottom-left-content-container),
|
|
31
|
+
:global(.ipc-player-bottom-right-content-container),
|
|
32
|
+
:global(.ipc-player-top-left-content-container),
|
|
33
|
+
:global(.ipc-player-top-right-content-container) {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: row;
|
|
36
|
+
align-items: center;
|
|
37
|
+
flex-shrink: 0;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// Preserve the preview's 16:9 native frame; center it using a resolved flex viewport.
|
|
42
|
+
// Changing this class does not remount the player or restart its media lifecycle.
|
|
43
|
+
.verticalViewport :global(.ray-ipc-player-lynx) {
|
|
44
|
+
width: 100%;
|
|
45
|
+
height: 56.25vw;
|
|
46
|
+
max-height: 100%;
|
|
47
|
+
flex-shrink: 0;
|
|
48
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CoverView, View } from '@ray-js/ray';
|
|
2
|
+
import type { CSSProperties } from 'react';
|
|
3
|
+
import { PlayerRenderMode } from './context';
|
|
4
|
+
export declare const getPlayerOverlayHost: (renderMode: PlayerRenderMode) => typeof View | typeof CoverView;
|
|
5
|
+
export declare const usePlayerOverlayHost: () => typeof View | typeof CoverView;
|
|
6
|
+
export declare const usePlayerOverlayFillStyle: () => CSSProperties | undefined;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { CoverView, View } from '@ray-js/ray';
|
|
2
|
+
import { usePlayerRenderMode } from './context';
|
|
3
|
+
|
|
4
|
+
// Keep the WebView overlay contract; Lynx shares the native View tree on every platform.
|
|
5
|
+
export const getPlayerOverlayHost = renderMode => renderMode === 'lynx' ? View : CoverView;
|
|
6
|
+
export const usePlayerOverlayHost = () => getPlayerOverlayHost(usePlayerRenderMode());
|
|
7
|
+
const nativeOverlayFill = {
|
|
8
|
+
position: 'absolute',
|
|
9
|
+
left: 0,
|
|
10
|
+
right: 0,
|
|
11
|
+
top: 0,
|
|
12
|
+
bottom: 0,
|
|
13
|
+
width: '100%',
|
|
14
|
+
height: '100%'
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
// Native View is a containing block: absolute children alone leave its height at zero.
|
|
18
|
+
export const usePlayerOverlayFillStyle = () => usePlayerRenderMode() === 'lynx' ? nativeOverlayFill : undefined;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
|
+
import React, { useContext } from 'react';
|
|
4
|
+
import { Text } from '@ray-js/ray';
|
|
5
|
+
import { PlayerControlVisibilityContext, usePlayerRenderMode } from './context';
|
|
6
|
+
import { glyphForClassName } from './glyphs';
|
|
7
|
+
import './font.less';
|
|
8
|
+
import styles from './text.module.less';
|
|
9
|
+
|
|
10
|
+
// Preserve ordinary Text and the legacy empty icon node in WebView mode.
|
|
11
|
+
export const PlayerText = props => {
|
|
12
|
+
var _props$style$opacity, _props$style, _props$style2;
|
|
13
|
+
const mode = usePlayerRenderMode();
|
|
14
|
+
const controlsVisible = useContext(PlayerControlVisibilityContext);
|
|
15
|
+
// Fade the actual native text too; ancestor opacity alone is not a text-paint contract.
|
|
16
|
+
// Keep glyphs and geometry stable across hide/show. Outside the bars preserve caller styles.
|
|
17
|
+
const barStyle = mode === 'lynx' && controlsVisible !== undefined ? _objectSpread(_objectSpread({}, props.style), {}, {
|
|
18
|
+
opacity: controlsVisible ? (_props$style$opacity = (_props$style = props.style) === null || _props$style === void 0 ? void 0 : _props$style.opacity) !== null && _props$style$opacity !== void 0 ? _props$style$opacity : 1 : 0,
|
|
19
|
+
transition: 'opacity 0.3s ease',
|
|
20
|
+
pointerEvents: controlsVisible ? (_props$style2 = props.style) === null || _props$style2 === void 0 ? void 0 : _props$style2.pointerEvents : 'none'
|
|
21
|
+
}) : props.style;
|
|
22
|
+
const glyph = mode === 'lynx' && props.children == null ? glyphForClassName(props.className) : '';
|
|
23
|
+
if (!glyph) return /*#__PURE__*/React.createElement(Text, _extends({}, props, {
|
|
24
|
+
style: barStyle
|
|
25
|
+
}));
|
|
26
|
+
return /*#__PURE__*/React.createElement(Text, _extends({}, props, {
|
|
27
|
+
className: `${props.className || ''} ${styles.glyph}`,
|
|
28
|
+
style: _objectSpread(_objectSpread({}, barStyle), {}, {
|
|
29
|
+
fontFamily: 'ipc-player-lynx-ttf'
|
|
30
|
+
})
|
|
31
|
+
}), glyph);
|
|
32
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
|
+
import type { PlayerRenderMode } from './context';
|
|
3
|
+
export declare const getPlayerViewport: (mode: PlayerRenderMode, verticalFull: boolean, height: CSSProperties['height']) => {
|
|
4
|
+
style: CSSProperties;
|
|
5
|
+
objectFit: 'contain' | 'fillCrop';
|
|
6
|
+
backgroundColor: string;
|
|
7
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export const getPlayerViewport = (mode, verticalFull, height) => {
|
|
2
|
+
if (mode === 'lynx' && verticalFull) {
|
|
3
|
+
// The outer player already has a resolved height. Do not nest its calc expression.
|
|
4
|
+
return {
|
|
5
|
+
style: {
|
|
6
|
+
height: 'calc(100% - 48px)',
|
|
7
|
+
flexShrink: 0,
|
|
8
|
+
backgroundColor: '#000',
|
|
9
|
+
display: 'flex',
|
|
10
|
+
flexDirection: 'column',
|
|
11
|
+
justifyContent: 'center'
|
|
12
|
+
},
|
|
13
|
+
objectFit: 'fillCrop',
|
|
14
|
+
backgroundColor: '#000'
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
return {
|
|
18
|
+
style: {
|
|
19
|
+
height: verticalFull ? `calc(${height} - 48px)` : height
|
|
20
|
+
},
|
|
21
|
+
objectFit: 'fillCrop',
|
|
22
|
+
backgroundColor: '#262626'
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const signalPngMap: Record<string, string>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import signalFour0 from './signalFour0.png';
|
|
2
|
+
import signalFour1 from './signalFour1.png';
|
|
3
|
+
import signalFour2 from './signalFour2.png';
|
|
4
|
+
import signalFour3 from './signalFour3.png';
|
|
5
|
+
import signalFour4 from './signalFour4.png';
|
|
6
|
+
import signalThree0 from './signalThree0.png';
|
|
7
|
+
import signalThree1 from './signalThree1.png';
|
|
8
|
+
import signalThree2 from './signalThree2.png';
|
|
9
|
+
import signalThree3 from './signalThree3.png';
|
|
10
|
+
|
|
11
|
+
// Rasterized from the corresponding WebView SVG; keep every signal level unchanged.
|
|
12
|
+
export const signalPngMap = {
|
|
13
|
+
signalFour0,
|
|
14
|
+
signalFour1,
|
|
15
|
+
signalFour2,
|
|
16
|
+
signalFour3,
|
|
17
|
+
signalFour4,
|
|
18
|
+
signalThree0,
|
|
19
|
+
signalThree1,
|
|
20
|
+
signalThree2,
|
|
21
|
+
signalThree3
|
|
22
|
+
};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|