From de8947873d8222f40fa14a077add456b3ed6f58c Mon Sep 17 00:00:00 2001 From: SUZUKI Tetsuya Date: Fri, 19 Nov 2021 17:18:15 +0900 Subject: [PATCH] =?UTF-8?q?config=20=E3=82=92=E5=BE=AA=E7=92=B0=E5=8F=82?= =?UTF-8?q?=E7=85=A7=E3=81=97=E3=81=AA=E3=81=84=E3=82=88=E3=81=86=E3=81=AB?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SoraQuickStart/ViewController.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SoraQuickStart/ViewController.swift b/SoraQuickStart/ViewController.swift index 660a4fc..30fe354 100644 --- a/SoraQuickStart/ViewController.swift +++ b/SoraQuickStart/ViewController.swift @@ -73,11 +73,12 @@ class ViewController: UIViewController { // ストリームが追加されたら受信用の VideoView をストリームにセットします。 // このアプリでは、複数のユーザーが接続した場合は最後のユーザーの映像のみ描画します。 + let publisherStreamId = config.publisherStreamId config.mediaChannelHandlers.onAddStream = { [weak self] stream in guard let strongSelf = self else { return } - if stream.streamId != config.publisherStreamId { + if stream.streamId != publisherStreamId { stream.videoRenderer = strongSelf.receiverVideoView } }