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

自定义工具栏,如何获取标注的截图信息 #173

Open
scyuanhui opened this issue Jan 7, 2025 · 4 comments
Open

自定义工具栏,如何获取标注的截图信息 #173

scyuanhui opened this issue Jan 7, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@scyuanhui
Copy link

Version of js-screen-shot

1.9.9-rc.23

Operating system and its version

Windows

Browser and its version

No response

Sandbox to reproduce

No response

What happened?

20250107-163738
如何在点击了自定义工具栏的图标,获取到当前截图(包括标注)的图片信息(base64)?

报错信息

No response

@scyuanhui scyuanhui added the bug Something isn't working label Jan 7, 2025
@likaia
Copy link
Owner

likaia commented Jan 7, 2025

Hello @scyuanhui. Your feedback has been received, and you will be notified in the issue area when the problem is resolved.
你好 @scyuanhui,已收到你反馈的问题,问题解决后将在issue区域通知你。

@likaia
Copy link
Owner

likaia commented Jan 7, 2025

Version of js-screen-shot

1.9.9-rc.23

Operating system and its version

Windows

Browser and its version

No response

Sandbox to reproduce

No response

What happened?

20250107-163738 如何在点击了自定义工具栏的图标,获取到当前截图(包括标注)的图片信息(base64)?

报错信息

No response

可以通过getCanvasController 去获取到容器,然后调用api把内容拿出来。文档:https://www.kaisir.cn/js-screen-shot/docs/config/#api

@scyuanhui
Copy link
Author

QQ20250107-170235
1、通过getCanvasController获取到了canvasDom对象,但是是整个的浏览器界面的窗口,我想获取的是指定的容器的带有标注的图片信息,调用哪个api能实现?
2、现在的场景是对视频播放进行截图,在配置中可以设置截图容器dom,但这样引发了一个问题就是:截图的画面不能定格在触发时的界面,如果不设置截图容器就不会出现这个问题,这个要如何解决呢?
以上2个问题该如何解决啊?

@likaia
Copy link
Owner

likaia commented Jan 7, 2025

QQ20250107-170235 1、通过getCanvasController获取到了canvasDom对象,但是是整个的浏览器界面的窗口,我想获取的是指定的容器的带有标注的图片信息,调用哪个api能实现? 2、现在的场景是对视频播放进行截图,在配置中可以设置截图容器dom,但这样引发了一个问题就是:截图的画面不能定格在触发时的界面,如果不设置截图容器就不会出现这个问题,这个要如何解决呢? 以上2个问题该如何解决啊?

这就比较麻烦了,第一点目前没有API提供,第二点的话,算bug。我排查下看看

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants