@@ -9,7 +9,6 @@ actor VideoHardMuteActor {
99 private var capturer : CameraVideoCapturer ?
1010
1111 /// ハードミュートを有効化/無効化します
12- /// カメラキャプチャラーの操作には libwebrtc のカメラ用キュー(SoraDispatcher)を利用して呼ぶようにします
1312 ///
1413 /// - Parameters:
1514 /// - mute: `true` で有効化、`false` で無効化
@@ -27,7 +26,7 @@ actor VideoHardMuteActor {
2726 // ミュートを有効化します
2827 if mute {
2928 guard let currentCapturer = await currentCameraVideoCapturer ( ) else {
30- // 前回のハードミュートでキャプチャラーを保持している場合は冪等として成功扱いにします
29+ // 既にハードミュート済み(再開用キャプチャラーを保持)なら、冪等として何もしません
3130 if capturer != nil { return }
3231 throw SoraError . mediaChannelError ( reason: " CameraVideoCapturer is unavailable " )
3332 }
@@ -50,6 +49,7 @@ actor VideoHardMuteActor {
5049
5150 // 現在のカメラキャプチャラーを取得します
5251 private func currentCameraVideoCapturer( ) async -> CameraVideoCapturer ? {
52+ // libwebrtc のカメラ用キュー(SoraDispatcher)を利用して呼ぶようにします
5353 await withCheckedContinuation { continuation in
5454 SoraDispatcher . async ( on: . camera) {
5555 continuation. resume ( returning: CameraVideoCapturer . current)
@@ -59,6 +59,7 @@ actor VideoHardMuteActor {
5959
6060 // カメラキャプチャを停止します
6161 private func stopCameraVideoCapture( _ capturer: CameraVideoCapturer ) async throws {
62+ // libwebrtc のカメラ用キュー(SoraDispatcher)を利用して呼ぶようにします
6263 try await withCheckedThrowingContinuation { ( continuation: CheckedContinuation < Void , Error > ) in
6364 SoraDispatcher . async ( on: . camera) {
6465 // CameraVideoCapturer.stop はコールバック形式です
@@ -78,6 +79,7 @@ actor VideoHardMuteActor {
7879 _ capturer: CameraVideoCapturer ,
7980 senderStream: MediaStream
8081 ) async throws {
82+ // libwebrtc のカメラ用キュー(SoraDispatcher)を利用して呼ぶようにします
8183 try await withCheckedThrowingContinuation { ( continuation: CheckedContinuation < Void , Error > ) in
8284 SoraDispatcher . async ( on: . camera) {
8385 // マルチストリームの場合、停止時と現在の送信ストリームが異なることがあるので再設定します
0 commit comments