@ray-js/ipc-player-integration 0.0.1-beta-19 → 0.0.1-beta-21
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/lib/ctx/ctx.js
CHANGED
|
@@ -100,8 +100,8 @@ export function VoiceIntercom(_ref) {
|
|
|
100
100
|
onTouchEnd: onTouchEnd
|
|
101
101
|
}, intercom ? /*#__PURE__*/React.createElement(Image, {
|
|
102
102
|
src: Res,
|
|
103
|
-
className: clsx('ipc-player-plugin-voice-intercom-img', iconClassName)
|
|
103
|
+
className: clsx('ipc-player-plugin-voice-intercom-img', 'intercom-ing-default-size', iconClassName)
|
|
104
104
|
}) : /*#__PURE__*/React.createElement(View, {
|
|
105
|
-
className: clsx('icon-panel', 'icon-panel-one-way-intercom', iconClassName)
|
|
105
|
+
className: clsx('icon-panel', 'icon-panel-one-way-intercom', 'intercom-default-icon', iconClassName)
|
|
106
106
|
}));
|
|
107
107
|
}
|
|
@@ -14,4 +14,13 @@
|
|
|
14
14
|
.ipc-player-plugin-voice-intercom-img {
|
|
15
15
|
width: calc(@size * var(--ipc-player-size-scale, 1));
|
|
16
16
|
height: calc(@size * var(--ipc-player-size-scale, 1));;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.intercom-default-icon {
|
|
20
|
+
font-size: calc(@size * var(--ipc-player-size-scale, 1.5)) !important;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.intercom-ing-default-size {
|
|
24
|
+
width: calc(@size * var(--ipc-player-size-scale, 1.5));
|
|
25
|
+
height: calc(@size * var(--ipc-player-size-scale, 1.5));
|
|
17
26
|
}
|
package/lib/ui/ui.js
CHANGED
|
@@ -78,14 +78,18 @@ export const IPCPlayerIntegration = /*#__PURE__*/React.memo(props => {
|
|
|
78
78
|
absoluteContent,
|
|
79
79
|
screenType,
|
|
80
80
|
playState,
|
|
81
|
-
fullResolutionActive
|
|
81
|
+
fullResolutionActive,
|
|
82
|
+
resolution,
|
|
83
|
+
mute
|
|
82
84
|
} = useStore({
|
|
83
85
|
topContent: instance.topContent,
|
|
84
86
|
bottomContent: instance.bottomContent,
|
|
85
87
|
absoluteContent: instance.absoluteContent,
|
|
86
88
|
screenType: instance.screenType,
|
|
87
89
|
playState: instance.playState,
|
|
88
|
-
fullResolutionActive: instance.fullResolutionActive
|
|
90
|
+
fullResolutionActive: instance.fullResolutionActive,
|
|
91
|
+
resolution: instance.resolution,
|
|
92
|
+
mute: instance.mute
|
|
89
93
|
});
|
|
90
94
|
const renderTopContent = useMemo(() => {
|
|
91
95
|
if (!topContent || !(topContent !== null && topContent !== void 0 && topContent.length)) return null;
|
|
@@ -183,7 +187,7 @@ export const IPCPlayerIntegration = /*#__PURE__*/React.memo(props => {
|
|
|
183
187
|
})
|
|
184
188
|
}, /*#__PURE__*/React.createElement(IPCPlayer, {
|
|
185
189
|
objectFit: "",
|
|
186
|
-
defaultMute:
|
|
190
|
+
defaultMute: mute,
|
|
187
191
|
devId: devId,
|
|
188
192
|
onlineStatus: deviceOnline,
|
|
189
193
|
ipcPlayerContext: instance.IPCPlayerInstance,
|
|
@@ -234,7 +238,7 @@ export const IPCPlayerIntegration = /*#__PURE__*/React.memo(props => {
|
|
|
234
238
|
ty.hideToast();
|
|
235
239
|
}, 3000);
|
|
236
240
|
},
|
|
237
|
-
clarity:
|
|
241
|
+
clarity: resolution === 'HD' ? 'hd' : 'normal',
|
|
238
242
|
privateState: privateState,
|
|
239
243
|
onPlayerTap: handPlayerTap // 对应原来的onVideoTap
|
|
240
244
|
}), playerReady && /*#__PURE__*/React.createElement(TopContent, {
|