Skip to content

Commit

Permalink
解像度とビットレートの指定を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
torikizi committed Oct 27, 2023
1 parent e522f22 commit aeaf6ba
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ class ConfigViewController: UITableViewController {

SoraSDKManager.shared.dataChannelRandomBinary = dataChannelRandomBinarySwitch.isOn


// 入力された設定を元にSoraへ接続を行います。
// ビデオチャットアプリでは複数のユーザーが同時に配信を行う必要があるため、
// role 引数には .sendrecv を指定し、マルチストリームを有効にします。
Expand All @@ -205,7 +206,11 @@ class ConfigViewController: UITableViewController {
configuration.spotlightFocusRid = spotlightFocusRid
configuration.spotlightUnfocusRid = spotlightUnfocusRid
configuration.signalingConnectMetadata = Environment.signalingConnectMetadata


configuration.videoBitRate = 30000
//configuration.cameraSettings = CameraSettings(resolution: .qvga240p, frameRate: 30, position: .back)
configuration.cameraSettings = CameraSettings(resolution: .uhd3024p, frameRate: 60, position: .back)
//configuration.cameraSettings = CameraSettings(resolution: .uhd2160p, frameRate: 10, position: .back)
configuration.dataChannelSignaling = true
configuration.ignoreDisconnectWebSocket = ignoreDisconnectWebSocket

Expand Down

0 comments on commit aeaf6ba

Please sign in to comment.