xgplayer icon indicating copy to clipboard operation
xgplayer copied to clipboard

saveScreenShot 不支持 qiankun

Open liu-collab opened this issue 1 year ago • 4 comments

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

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

如何复现问题? How to reproduce the problem?

const { saveScreenShot } = playerRef.getPlugin('screenshot')
    playerRef
      .getPlugin('screenshot')
      .shot()
      .then((res) => {
        saveScreenShot(res, '截图.png')
      })

您期望的播放器正常行为是? What did you expect to happen? 在qiankun中可以支持下载

实际播放器的表现是? What actually happened? image

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

liu-collab avatar Apr 20 '24 06:04 liu-collab

暂时可以这么解决

 playerRef
      .getPlugin('screenshot')
      .shot()
      .then((res) => {
        // 下载截图 saveScreenShot 播放器 不支持qiankun
        const saveLink = document.createElement('a')
        saveLink.href = res
        saveLink.download = '截图.png'
        document.body.appendChild(saveLink)
        saveLink.click()
        window.URL.revokeObjectURL(saveLink)
      })

liu-collab avatar Apr 20 '24 06:04 liu-collab

@liu-collab 请问您的chrome浏览器版本具体是多少?我看你的提的是和华为乾坤有关,这是车机系统里的问题吗?

gemxx avatar May 14 '24 11:05 gemxx

@liu-collab 请问您的chrome浏览器版本具体是多少?我看你的提的是和华为乾坤有关,这是车机系统里的问题吗?

微前端:https://qiankun.umijs.org/zh

liu-collab avatar May 22 '24 09:05 liu-collab

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] avatar Aug 20 '24 10:08 github-actions[bot]

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!

github-actions[bot] avatar Sep 20 '24 10:09 github-actions[bot]