Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xgplayer调用api旋转视频,视频画面铺不满 #1366

Open
178320805 opened this issue Apr 7, 2024 · 3 comments
Open

xgplayer调用api旋转视频,视频画面铺不满 #1366

178320805 opened this issue Apr 7, 2024 · 3 comments

Comments

@178320805
Copy link

您使用的西瓜播放器版本是多少? What version of xgplayer are you using?
~2.31.4

您使用的操作系统和浏览器分别是? What OS and browser are you using?
windos macos

如何复现问题? How to reproduce the problem?
播放器初始化之后添加this.player.rotate(false, true, 5)

您期望的播放器正常行为是? What did you expect to happen?
希望视频铺满

实际播放器的表现是? What actually happened?
还有黑边
image

可填写您所在的公司和相关产品业务,方便我们提供更好的技术支持 You can write your company and product which uses xgplayer, for helping us provide better technical support.

@178320805
Copy link
Author

image
这个是还没使用旋转api之前的视频

@178320805
Copy link
Author

  config: {
    id: "mse",
    url: "",
    fluid: true,
    defaultPlaybackRate: 1,
    definitionActive: "click",
    poster: "",
    volume: 1,
    autoplay: false, // 手动点击播放,节省用户流量
    playsinline: true,
    lastPlayTime: 0, //视频起播时间(单位:秒)
    lastPlayTimeHideDelay: 3,
    enableVideoDbltouch: true,
    rotateFullscreen: true,
    // closeInactive: true, // 使播放器控制栏常驻不隐藏
    rotate: {   //视频旋转按钮配置项
    innerRotate: true, //只旋转内部video
     clockwise: true // 旋转方向是否为顺时针
   },
    fitVideoSize: "auto",
  }, 这个是我的视频的配置,我手动点击旋转按钮并不会出现占不满的情况

@178320805
Copy link
Author

image
手动点击旋转之后的效果

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant