Commit 4dec6e1c authored by JingChao's avatar JingChao

Updates angular/hlsUtil.md

Auto commit by GitBook Editor
parent 0ba408cc
...@@ -170,7 +170,19 @@ vm.showSheet = function () { ...@@ -170,7 +170,19 @@ vm.showSheet = function () {
- 参数2`(回调函数 function)` 回调函数返回图片的base64 - 参数2`(回调函数 function)` 回调函数返回图片的base64
- 调用实例如下 - 调用实例如下
```javascript ```javascript
vm.openCamera = function () {
var obj = {
quality: 50,
allowEdit: false,
width: 1024,
height: 768
}
hlsUtil.openCamera(obj, function (imgdata) {
alert(imgdata);
}, function (error) {
alert(error);
})
}
``` ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment