- Tuya MiniApp IDE version information: View in About~
- App application version information: Check it in Settings-About~
- The versions of @ray-js/ray, @ray-js/panel-sdk (if developed using ray) can be viewed in package.json~
- Mobile device information: Mobile phone model and system~
- Related code: Code content that can reproduce the problem~
- Log information: error log or IDE running log, etc.~
- Problem description (reproduction steps):
- expected outcome:
- actual results:
@ray-js/components-ty-ipc@2.2.4的IpcPlayer调整静音以及setPageOrientation都会导致视频界面缩放
@ray-js/components-ty-ipc@2.2.4的IpcPlayer调整静音以及setPageOrientation都会导致视频界面缩放
Tags:
-
- Site Admin
- Posts: 33
Re: @ray-js/components-ty-ipc@2.2.4的IpcPlayer调整静音以及setPageOrientation都会导致视频界面缩放
你好,你的反馈已收到,我们将尽快答复你。

Re: @ray-js/components-ty-ipc@2.2.4的IpcPlayer调整静音以及setPageOrientation都会导致视频界面缩放
您好:setPageOrientation 横竖屏切换 是会重新恢复初始状态,属正常情况
调整静音导致界面缩放正在排查解决中,预计跟随APP 6.6.0解决
Re: @ray-js/components-ty-ipc@2.2.4的IpcPlayer调整静音以及setPageOrientation都会导致视频界面缩放
我发现不管是静音还是设置全屏后在切换小屏都是缩放,都跟redux的状态有关,只要isFull和isMute发生改变都会导致缩放(参考ipc的模板代码 => 模板代码的tab有bug,文件config/home.ts事件没有赋予上去)
Re: @ray-js/components-ty-ipc@2.2.4的IpcPlayer调整静音以及setPageOrientation都会导致视频界面缩放
const arr = tabTopConfig
.filter(item => {
const { isMainDev, isDpShow, subDevDpShow } = item;
if (isFull) {
return item.isFull;
}
if (mainDeviceCameraConfig && isMainDev && ${isMainDev}
in mainDeviceCameraConfig) {
return mainDeviceCameraConfig[isMainDev];
}
Code: Select all
if (devInfo && isDpShow) {
if (hasZoom(devInfo.dpCodes) || hasPtz(devInfo.dpCodes)) {
return subDevDpShow;
}
return !subDevDpShow;
}
return item.notFull;
})
.map(item => {
const obj = { icon: item.icon, key: item.key, disable: item.disable, pageId: item.pageId, routerFun: item.routerFun};
const { supportedAudioMode } = item;
if (item.propParam) {
obj.icon = prop[item.propParam] ? item.icon2 : item.icon1;
} else if (item.storeParam) {
obj.icon = ipcCommon[item.storeParam] ? item.icon2 : item.icon1;
} else if (switchType === item.key) {
// 图标切换
item.icon = item.icon === item.icon1 ? item.icon2 : item.icon1;
obj.icon = item.icon;
} else if (
supportedAudioMode &&
mainDeviceCameraConfig &&
mainDeviceCameraConfig.supportedAudioMode
) {
// 对讲方式判断
item.icon = item[`icon${mainDeviceCameraConfig.supportedAudioMode}`];
obj.key = item[`key${mainDeviceCameraConfig.supportedAudioMode}`];
}
return obj;
});
return arr;
map里面命名obj的变量需要添加routerFun: item.routerFun。