From fc49675063c3ea609d92a4a1936a3ec8d5be250f Mon Sep 17 00:00:00 2001 From: shogo4405 Date: Wed, 2 Oct 2024 19:46:13 +0900 Subject: [PATCH] fix can't compile tvOS --- Sources/Mixer/MediaMixer.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Sources/Mixer/MediaMixer.swift b/Sources/Mixer/MediaMixer.swift index 5ee8b55c9..0da0ea2a7 100644 --- a/Sources/Mixer/MediaMixer.swift +++ b/Sources/Mixer/MediaMixer.swift @@ -282,8 +282,10 @@ public final actor MediaMixer { return } outputs.append(output) - if !isCapturing { - startCapturing() + if #available(tvOS 17.0, *) { + if !isCapturing { + startCapturing() + } } }