bytedance / xgplayer

A HTML5 video player with a parser that saves traffic
https://h5player.bytedance.com/
MIT License
8.17k stars 858 forks source link

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

Closed 178320805 closed 1 month ago

178320805 commented 5 months ago

您使用的西瓜播放器版本是多少? 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 commented 5 months ago

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

178320805 commented 5 months ago
  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 commented 5 months ago

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

github-actions[bot] commented 2 months ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] commented 1 month ago

This issue has been automatically closed after a period of inactivity. If it is still present in the latest release, please create a new issue with up-to-date information. Thank you!