未验证 提交 7e195357 编写于 作者: Z zengyawen 提交者: Gitee

update

Signed-off-by: Nzengyawen <zengyawen1@huawei.com>
上级 3bbb4b8f
...@@ -99,15 +99,15 @@ boolean isSupported = this.photoOutPut.isQuickThumbnailSupported() ...@@ -99,15 +99,15 @@ boolean isSupported = this.photoOutPut.isQuickThumbnailSupported()
if (isSupported) { if (isSupported) {
// 使能快速缩略图 // 使能快速缩略图
this.photoOutPut.enableQuickThumbnail(true) this.photoOutPut.enableQuickThumbnail(true)
} this.photoOutPut.on('quickThumbnail', (err, pixelmap) => {
this.photoOutPut.on('quickThumbnail', (err, pixelmap) => {
if (err || pixelmap === undefined) { if (err || pixelmap === undefined) {
Logger.error(this.tag, 'photoOutPut on thumbnail failed ') Logger.error(this.tag, 'photoOutPut on thumbnail failed ')
return return
} }
// 显示或保存pixelmap // 显示或保存pixelmap
this.showOrSavePicture(pixelmap) this.showOrSavePicture(pixelmap)
}) })
}
``` ```
## 预热启动 ## 预热启动
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册