8
8
9
9
* Camera and Microphone streaming library via RTMP and SRT for iOS, macOS, tvOS and visionOS.
10
10
* README.md contains unreleased content, which can be tested on the main branch.
11
- * [ API Documentation] ( https://docs.haishinkit.com/swift/1.9.0 / )
11
+ * [ API Documentation] ( https://docs.haishinkit.com/swift/1.9.1 / )
12
12
13
13
## 💖 Sponsors
14
14
<p align =" center " >
@@ -299,15 +299,15 @@ stream.configuration { session in
299
299
```
300
300
301
301
### 🔊 Audio
302
- #### [ Capture] ( https://shogo4405.github.io/HaishinKit. swift/Classes/IOAudioCaptureUnit.html )
302
+ #### [ Capture] [ https://docs.haishinkit.com/ swift/1.9.1 /Classes/IOAudioCaptureUnit.html)
303
303
Specifies the capture capture settings.
304
304
``` swift
305
305
let front = AVCaptureDevice.default (for : .audio )
306
306
stream.attachAudio (front, track : 0 ) { audioUnit, error in
307
307
}
308
308
```
309
309
310
- #### [ AudioMixerSettings] ( https://shogo4405.github.io/HaishinKit. swift/Structs/IOAudioMixerSettings.html )
310
+ #### [ AudioMixerSettings] ( https://docs.haishinkit.com/ swift/1.9.1 /Structs/IOAudioMixerSettings.html )
311
311
If you want to mix multiple audio tracks, please enable the feature flag.
312
312
``` swift
313
313
stream.isMultiTrackAudioMixingEnabled = true
@@ -332,7 +332,7 @@ stream.audioMixerSettings.tracks = [
332
332
]
333
333
```
334
334
335
- #### [ AudioCodecSettings] ( https://shogo4405.github.io/HaishinKit. swift/Structs/AudioCodecSettings.html )
335
+ #### [ AudioCodecSettings] ( https://docs.haishinkit.com/ swift/1.9.1 /Structs/AudioCodecSettings.html )
336
336
``` swift
337
337
/// Specifies the bitRate of audio output.
338
338
stream.audioSettings .bitrate = 64 * 1000
@@ -343,7 +343,7 @@ stream.audioSettings.downmix = true
343
343
```
344
344
345
345
### 🎥 Video
346
- #### [ Capture] ( https://shogo4405.github.io/HaishinKit. swift/Classes/IOVideoCaptureUnit.html )
346
+ #### [ Capture] ( https://docs.haishinkit.com/ swift/1.9.1 /Classes/IOVideoCaptureUnit.html )
347
347
Specifies the video capture settings.
348
348
``` swift
349
349
let front = AVCaptureDevice.default (.builtInWideAngleCamera , for : .video , position : .front )
@@ -354,7 +354,7 @@ stream.attachCamera(front, track: 0) { videoUnit, error in
354
354
}
355
355
```
356
356
357
- #### [ VideoMixerSettings] ( https://shogo4405.github.io/HaishinKit. swift/Structs/IOVideoMixerSettings.html )
357
+ #### [ VideoMixerSettings] ( https://docs.haishinkit.com/ swift/1.9.1 /Structs/IOVideoMixerSettings.html )
358
358
``` swift
359
359
/// Specifies the image rendering mode.
360
360
stream.videoMixerSettings .mode = .passthrough or .offscreen
@@ -364,7 +364,7 @@ stream.videoMixerSettings.isMuted = false
364
364
stream.videoMixerSettings .mainTrack = 0
365
365
```
366
366
367
- #### [ VideoCodecSettings] ( https://shogo4405.github.io/HaishinKit. swift/Structs/VideoCodecSettings.html )
367
+ #### [ VideoCodecSettings] ( https://docs.haishinkit.com/ swift/1.9.1 /Structs/VideoCodecSettings.html )
368
368
``` swift
369
369
stream.videoSettings = .init (
370
370
videoSize : .init (width : 854 , height : 480 ),
0 commit comments