Skip to content

Commit

Permalink
接続開始後に AudioUnit を起動 ↔ 停止してみる
Browse files Browse the repository at this point in the history
  • Loading branch information
enm10k committed Oct 23, 2023
1 parent 65858a9 commit 6072536
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ class ConfigViewController: UITableViewController {
configuration.videoH264Params = videoH264Params

configuration.signalingConnectMetadata = Environment.signalingConnectMetadata

Sora.shared.usesManualAudio = true
configuration.videoEnabled = false

// 入力された設定を元にSoraへ接続を行います。
// ビデオチャットアプリでは複数のユーザーが同時に配信を行う必要があるため、
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,13 @@ extension VideoChatRoomViewController {
*/
private func handleDisconnect() {
// 明示的に配信をストップしてから、画面を閉じるようにしています。
SoraSDKManager.shared.disconnect()
// SoraSDKManager.shared.disconnect()
// ExitセグエはMain.storyboard内で定義されているので、そちらをご確認ください。
performSegue(withIdentifier: "Exit", sender: self)
// performSegue(withIdentifier: "Exit", sender: self)

let audioEnabled = Sora.shared.audioEnabled
NSLog("audioEnabled: \(audioEnabled) -> \(!audioEnabled)")
Sora.shared.audioEnabled = !audioEnabled
}
}

Expand Down

0 comments on commit 6072536

Please sign in to comment.