Skip to content

Commit

Permalink
Update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshLipan committed Sep 19, 2018
1 parent 92a5450 commit 3d16fa0
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions document/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,7 @@ JMRTCViewController.startCallUsers(params, () => {
const params = {
username: string // 注意这个 username 要和 JMRTCView 的 props.username 匹配,否则会失效
}
JMRTCViewController.setVideoView(params, () => {

})
JMRTCViewController.setVideoView(params)
```

### setvideoprofile
Expand All @@ -94,7 +92,7 @@ const params = {
profile: string //{profile: '240p' | '360p' | '480p' | '720p'} 视频编码属性,不调用这个接口默认是 '360p'
}

JMRTCViewController.setvideoprofile(params)
JMRTCViewController.setVideoProfile(params)
```

### getVideoProfile
Expand Down Expand Up @@ -164,9 +162,9 @@ JMRTCViewController.inviteUsers(params, () => {
})
```

### isMuted
### isMuted(ios)

获取静音状态。
(ios only) 获取静音状态。

```javascript
JMRTCViewController.isMuted((boolean) => { })
Expand All @@ -182,7 +180,7 @@ JMRTCViewController.setIsMuted({muted: true})

### isSpeakerphoneEnabled

获取扬声器状态。
(ios only) 获取扬声器状态。

```javascript
JMRTCViewController.isSpeakerphoneEnabled((boolean) => { })
Expand All @@ -198,7 +196,7 @@ JMRTCViewController.setIsSpeakerphoneEnabled({speakerphoneEnabled: true})

### isVideoStreamEnabled

获取视频流状态。
(ios only) 获取视频流状态。

```javascript
JMRTCViewController.isVideoStreamEnabled((boolean) => { })
Expand Down

0 comments on commit 3d16fa0

Please sign in to comment.