Skip to content

Commit

Permalink
fix: auto orientation on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
zijiren233 committed Oct 13, 2024
1 parent c29b866 commit 9ed55aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/assets/global.less
Original file line number Diff line number Diff line change
Expand Up @@ -287,11 +287,7 @@ a {
}

.art-control-pip,
.art-control-fullscreenWeb,
.art-control-syncControl,
.art-control-hls-quality,
.art-control-dash-quality,
.art-control-subtitle {
.art-control-fullscreenWeb {
display: none !important;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Player.vue
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ const newPlayerOption = (html: HTMLDivElement): Option => {
lock: true, // 移动端显示锁定按钮
fastForward: true, // 移动端添加长按视频快进功能
autoPlayback: false, // 使用自动回放功能
autoOrientation: false, // 移动端的网页全屏时,根据视频尺寸和视口尺寸,旋转播放器
autoOrientation: true, // 移动端的网页全屏时,根据视频尺寸和视口尺寸,旋转播放器
airplay: false, // 隔空播放
type: Props.options.type,
plugins: Props.options.plugins,
Expand Down

0 comments on commit 9ed55aa

Please sign in to comment.