Commit 07bcdb98 by Tianqing Liu

feat: 调整图片压缩率

1 parent a1fdcce6
......@@ -190,7 +190,7 @@ export default {
return Promise.resolve(true);
}
},
screenshot(filename = '', format = 'png', quality = 0.92, type = 'base64') {
screenshot(filename = '', format = 'jpeg', quality = 0.2, type = 'base64') {
return new Promise((resolve, reject) => {
// 如果是播放状态
const isPlaying = this._jessibuca.isPlaying();
......@@ -222,7 +222,7 @@ export default {
image.src = this._jessibuca.screenshot(filename, format, quality, type);
});
},
screenshotOrigin(filename = '', format = 'png', quality = 0.92, type = 'base64') {
screenshotOrigin(filename = '', format = 'jpeg', quality = 0.2, type = 'base64') {
return this._jessibuca.screenshot(filename, format, quality, type);
}
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!