@ray-js/ipc-player-integration 0.0.1-beta-70 → 0.0.1-beta-72

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.
Files changed (2) hide show
  1. package/lib/ui/ui.js +4 -2
  2. package/package.json +1 -1
package/lib/ui/ui.js CHANGED
@@ -121,9 +121,11 @@ export const IPCPlayerIntegration = /*#__PURE__*/React.memo(props => {
121
121
  // 若为全屏模式并且要求按宽填充,即横屏时充满,主动设置模式为-1即可
122
122
  if (type === 'landscape' && landscapeMode === 'fill') {
123
123
  setScaleMultiple(-1);
124
+ } else if (type === 'landscape' && landscapeMode === 'standard') {
125
+ setScaleMultiple(-2);
124
126
  } else {
125
- // 将屏幕播放比例设为1
126
- setScaleMultiple(playerFit === 'contain' ? 1 : -2);
127
+ // 竖屏时 将屏幕播放比例设为按宽按高
128
+ setScaleMultiple(playerFit === 'contain' ? -1 : -2);
127
129
  }
128
130
  } catch (err) {
129
131
  console.log(err, 'err');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/ipc-player-integration",
3
- "version": "0.0.1-beta-70",
3
+ "version": "0.0.1-beta-72",
4
4
  "description": "IPC 播放器功能集成",
5
5
  "main": "lib/index",
6
6
  "files": [