@ray-js/components-ty-ipc@2.2.4的IpcPlayer调整静音以及setPageOrientation都会导致视频界面缩放

小程序开发相关产品技术讨论,包括面板、智能小程序、React Native、Ray跨端框架、Panel SDK、微信小程序、小程序开发工具(IDE)及其他开发技术相关等话题


Post Reply
tokyoaa
Posts: 5

  • 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:

Tags:
tokyoaa
Posts: 5

Re: @ray-js/components-ty-ipc@2.2.4的IpcPlayer调整静音以及setPageOrientation都会导致视频界面缩放

ipc的模板同样有这样的问题?

tdeveloper
Site Admin
Posts: 33

Re: @ray-js/components-ty-ipc@2.2.4的IpcPlayer调整静音以及setPageOrientation都会导致视频界面缩放

你好,你的反馈已收到,我们将尽快答复你。

:arrow: 你对灵魂的渴望,是你命运的先知
XiaooSe
Posts: 15

Re: @ray-js/components-ty-ipc@2.2.4的IpcPlayer调整静音以及setPageOrientation都会导致视频界面缩放

您好:setPageOrientation 横竖屏切换 是会重新恢复初始状态,属正常情况
调整静音导致界面缩放正在排查解决中,预计跟随APP 6.6.0解决

tokyoaa
Posts: 5

Re: @ray-js/components-ty-ipc@2.2.4的IpcPlayer调整静音以及setPageOrientation都会导致视频界面缩放

我发现不管是静音还是设置全屏后在切换小屏都是缩放,都跟redux的状态有关,只要isFull和isMute发生改变都会导致缩放(参考ipc的模板代码 => 模板代码的tab有bug,文件config/home.ts事件没有赋予上去)

tokyoaa
Posts: 5

Re: @ray-js/components-ty-ipc@2.2.4的IpcPlayer调整静音以及setPageOrientation都会导致视频界面缩放

我的设备是双目摄像头

XiaooSe
Posts: 15

Re: @ray-js/components-ty-ipc@2.2.4的IpcPlayer调整静音以及setPageOrientation都会导致视频界面缩放

麻烦 具体贴一下代码块吧

tokyoaa
Posts: 5

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。

Post Reply