正在显示
2 个修改的文件
包含
11 行增加
和
1 行删除
| @@ -170,6 +170,15 @@ constructor( | @@ -170,6 +170,15 @@ constructor( | ||
| 170 | iceServers.addAll(RTCClient.DEFAULT_ICE_SERVERS) | 170 | iceServers.addAll(RTCClient.DEFAULT_ICE_SERVERS) |
| 171 | } | 171 | } |
| 172 | 172 | ||
| 173 | + info.iceServersList.forEach { | ||
| 174 | + Timber.e{ "username = \"${it.username}\""} | ||
| 175 | + Timber.e{ "credential = \"${it.credential}\""} | ||
| 176 | + Timber.e{ "urls: "} | ||
| 177 | + it.urlsList.forEach{ | ||
| 178 | + Timber.e{" $it"} | ||
| 179 | + } | ||
| 180 | + } | ||
| 181 | + | ||
| 173 | val rtcConfig = PeerConnection.RTCConfiguration(iceServers).apply { | 182 | val rtcConfig = PeerConnection.RTCConfiguration(iceServers).apply { |
| 174 | sdpSemantics = PeerConnection.SdpSemantics.UNIFIED_PLAN | 183 | sdpSemantics = PeerConnection.SdpSemantics.UNIFIED_PLAN |
| 175 | continualGatheringPolicy = PeerConnection.ContinualGatheringPolicy.GATHER_CONTINUALLY | 184 | continualGatheringPolicy = PeerConnection.ContinualGatheringPolicy.GATHER_CONTINUALLY |
| @@ -259,7 +268,7 @@ constructor( | @@ -259,7 +268,7 @@ constructor( | ||
| 259 | Timber.v { "received ice candidate from peer: $candidate, $target" } | 268 | Timber.v { "received ice candidate from peer: $candidate, $target" } |
| 260 | when (target) { | 269 | when (target) { |
| 261 | LivekitRtc.SignalTarget.PUBLISHER -> publisher.addIceCandidate(candidate) | 270 | LivekitRtc.SignalTarget.PUBLISHER -> publisher.addIceCandidate(candidate) |
| 262 | - LivekitRtc.SignalTarget.SUBSCRIBER -> publisher.addIceCandidate(candidate) | 271 | + LivekitRtc.SignalTarget.SUBSCRIBER -> subscriber.addIceCandidate(candidate) |
| 263 | else -> Timber.i { "unknown ice candidate target?" } | 272 | else -> Timber.i { "unknown ice candidate target?" } |
| 264 | } | 273 | } |
| 265 | } | 274 | } |
| @@ -40,6 +40,7 @@ class SubscriberTransportObserver( | @@ -40,6 +40,7 @@ class SubscriberTransportObserver( | ||
| 40 | } | 40 | } |
| 41 | 41 | ||
| 42 | override fun onConnectionChange(newState: PeerConnection.PeerConnectionState?) { | 42 | override fun onConnectionChange(newState: PeerConnection.PeerConnectionState?) { |
| 43 | + Timber.v { "onConnectionChange new state: $newState" } | ||
| 43 | } | 44 | } |
| 44 | 45 | ||
| 45 | override fun onSelectedCandidatePairChanged(event: CandidatePairChangeEvent?) { | 46 | override fun onSelectedCandidatePairChanged(event: CandidatePairChangeEvent?) { |
-
请 注册 或 登录 后发表评论