微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

如何提高videojs-record中exportImage()函数截取的截图质量

如何解决如何提高videojs-record中exportImage()函数截取的截图质量

// 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 举报,一经查实,本站将立刻删除。