Skip to content

Commit

Permalink
绘制Recorder调用关系图
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangyuecn committed Jan 28, 2020
1 parent 1e16299 commit 706bcf5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,8 @@ IOS其他浏览器||

# :open_book:方法文档

![](https://gitee.com/xiangyuecn/Recorder/raw/master/assets/use_caller.png)

### 【构造】rec=Recorder(set)

构造函数,拿到`Recorder`的实例,然后可以进行请求获取麦克风权限和录音。
Expand Down Expand Up @@ -644,7 +646,7 @@ set={

//波形颜色配置:[位置,css颜色,...] 位置: 取值0.0-1.0之间
,linear:[0,"rgba(0,187,17,1)",0.7,"rgba(255,215,0,1)",1,"rgba(255,102,0,1)"]
,lineColor:"" //中线css颜色,留空取波形第一个渐变颜色
,centerColor:"" //中线css颜色,留空取波形第一个渐变颜色
}
```

Expand Down
2 changes: 2 additions & 0 deletions app-support-sample/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ IOS其他浏览器||

# :open_book:方法文档

![](https://gitee.com/xiangyuecn/Recorder/raw/master/assets/use_caller.png)

## 【静态方法】RecordApp.RequestPermission(success,fail)
请求录音权限,如果当前环境不支持录音或用户拒绝将调用错误回调;调用`RecordApp.Start`前需先至少调用一次此方法,用于准备好必要的环境;请求权限后如果不使用了,不管有没有调用`Start`,至少要调用一次`Stop`来清理可能持有的资源。

Expand Down
8 changes: 4 additions & 4 deletions assets/npm-home/hash-history.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
[
{
"sha1": "38bce57d35ae9d560d2167494c2966a3f82ee4eb",
"time": "2020-1-28 13:04:26"
},
{
"sha1": "37aa5f16f3ff3bba8a6f7e7ee1db018007e13639",
"time": "2020-1-28 04:41:38"
Expand All @@ -14,9 +18,5 @@
{
"sha1": "d494fe71ad5175c130c56b1ce09d4953b0fc045a",
"time": "2020-1-17 16:12:00"
},
{
"sha1": "d7949810ec706e70159f0e09860b6f627197a29d",
"time": "2020-1-16 16:19:04"
}
]
Binary file added assets/use_caller.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/use_资料.rp
Binary file not shown.

0 comments on commit 706bcf5

Please sign in to comment.