@ray-js/ipc-player-integration 0.0.1-beta-19 → 0.0.1-beta-20
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 +1 -1
- package/lib/ui/ui.js +8 -4
- package/package.json +1 -1
package/lib/ctx/ctx.js
CHANGED
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, {
|