Skip to content

Commit

Permalink
docs: types.md file
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewShapovalov committed Jun 7, 2022
1 parent 5914d30 commit 85d2e3d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/types.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ type AudioChannel = 1 | 2;
```ts
type AudioSessionStrategy = 'recordOnly' | 'playAndRecord' | 'noAction';
```
| Value | Description |
| :---: | --- |
| `recordOnly` | Controls `AVAudioSession` completely and will set the category to `record`. There is a known issue with the `recordOnly` category and AirPods. Use `playAndRecord` category to make AirPods work. |
| `playAndRecord` | Controls `AVAudioSession` completely and will set the category to `playAndRecord`. |
| `noAction` | Does not control `AVAudioSession` at all. If this strategy is selected, only custom audio sources will be allowed. Microphone based sources will not be returned or added by any APIs. |

## `AudioQuality` (iOS only)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ class IVSBroadcastSessionService: NSObject {
} else {
onReceiveCameraPreview(IVSBroadcastCameraViewError("Can not get camera preview."), nil)
}

self.currentCameraDeviceUrn = newCameraDevice.descriptor().urn
} else {
onReceiveCameraPreview(IVSBroadcastCameraViewError("New device is empty."), nil)
Expand Down

0 comments on commit 85d2e3d

Please sign in to comment.