问题描述
// video.js configuration
this.config = {
controls: false,bigPlayButton: false,loop: false,width: 640,height: 480,fluid: false,plugins: {
record: {
screen: true,image:true,maxLength: 30,displayMilliseconds: false,debug: true,}
}
};
async getVPDetails(): Promise<any> {
return await this.player.record().exportimage('image/png',1);
}
takeScreenshot(){
this.getVPDetails().then(data => {
var unsafeImageUrl = URL.createObjectURL(data);
this.imageData = this.sanitizer.bypassSecurityTrustUrl(unsafeImageUrl);
},error => {
console.log(error);
});
}
这是我用来截取屏幕(整个窗口)屏幕截图的代码,但质量非常低showed in the image i have took from this function 有人可以帮我提高它的质量吗? 使用的库:https://collab-project.github.io/videojs-record/#/
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)