Skip to content

Commit

Permalink
role の型が違うので修正する
Browse files Browse the repository at this point in the history
  • Loading branch information
zztkm committed Jan 27, 2025
1 parent 29cc37b commit 9d1d836
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Sora/PeerChannel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -293,12 +293,22 @@ class PeerChannel: NSObject, RTCPeerConnectionDelegate {
Logger.debug(type: .peerChannel,
message: "did connect to signaling channel")

var role: SignalingRole
switch configuration.role {
case .sendonly:
role = .sendonly
case .recvonly:
role = .recvonly
case .sendrecv:
role = .sendrecv
}

let soraClient = "Sora iOS SDK \(SDKInfo.version)"
let webRTCVersion = "Shiguredo-build \(WebRTCInfo.version) (\(WebRTCInfo.version.dropFirst()).\(WebRTCInfo.branch).\(WebRTCInfo.commitPosition).\(WebRTCInfo.maintenanceVersion) \(WebRTCInfo.shortRevision))"

let simulcast = configuration.simulcastEnabled
let connect = SignalingConnect(
role: configuration.role,
role: role,
channelId: configuration.channelId,
clientId: configuration.clientId,
bundleId: configuration.bundleId,
Expand Down

0 comments on commit 9d1d836

Please sign in to comment.