Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo4405 committed Nov 3, 2023
1 parent b223002 commit 4b9e24f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ stream.play()
```

## 📓 Settings
### Capture
### 📹 Capture
```swift
stream.frameRate = 30
stream.sessionPreset = AVCaptureSession.Preset.medium
Expand All @@ -259,7 +259,7 @@ stream.videoCapture(for: 0).preferredVideoStabilizationMode = .auto
// stream.videoCapture(for: 0).isVideoMirrored = false
```

### AudioCodecSetting
### 🔊 [AudioCodecSettings](https://shogo4405.github.io/HaishinKit.swift/Structs/AudioCodecSettings.html)
When you specify the sampling rate, it will perform resampling. Additionally, in the case of multiple channels, downsampling can be applied.
```
stream.audioSettings = AudioCodecSettings(
Expand All @@ -271,7 +271,7 @@ stream.audioSettings = AudioCodecSettings(
)
```

### VideoCodecSettings
### 🎥 [VideoCodecSettings](https://shogo4405.github.io/HaishinKit.swift/Structs/VideoCodecSettings.html)
```
stream.videoSettings = VideoCodecSettings(
videoSize: .init(width: 854, height: 480),
Expand All @@ -285,7 +285,7 @@ stream.videoSettings = VideoCodecSettings(
)
```

### Recording
### ⏺️ Recording
```
// Specifies the recording settings. 0" means the same of input.
stream.startRecording(self, settings: [
Expand Down

0 comments on commit 4b9e24f

Please sign in to comment.