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

saveScreenShot 不支持 qiankun #1396

Open
liu-collab opened this issue Apr 20, 2024 · 3 comments
Open

saveScreenShot 不支持 qiankun #1396

liu-collab opened this issue Apr 20, 2024 · 3 comments
Labels
player xgplayer

Comments

@liu-collab
Copy link

您使用的西瓜播放器版本是多少? 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
Copy link
Author

暂时可以这么解决

 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)
      })

@gemxx
Copy link
Collaborator

gemxx commented May 14, 2024

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

@liu-collab
Copy link
Author

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

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

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

No branches or pull requests

2 participants