From a53ec1f60a32b68eaff36fc2f0f5ad9014bacffd Mon Sep 17 00:00:00 2001 From: zztkm Date: Tue, 8 Oct 2024 16:00:21 +0900 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E8=A6=81=E3=81=AA=E3=83=8F=E3=83=B3?= =?UTF-8?q?=E3=83=89=E3=83=A9=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sora/VideoView.swift | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Sora/VideoView.swift b/Sora/VideoView.swift index f9cd1cdd..27d415bc 100644 --- a/Sora/VideoView.swift +++ b/Sora/VideoView.swift @@ -22,12 +22,6 @@ public struct VideoViewHandlers { public var onChange: ((CGSize) -> Void)? /// 映像フレーム描画時に実行される public var onRender: ((VideoFrame?) -> Void)? - /// 映像フレームの描画開始時に実行される - public var onStart: (() -> Void)? - /// 映像フレームの描画停止時に実行される - public var onStop: (() -> Void)? - /// 映像が backgroundView に切り替わったときに実行される - public var onClear: (() -> Void)? } /** @@ -174,7 +168,6 @@ public class VideoView: UIView { */ public func clear() { if !isRendering { - handlers.onClear?() DispatchQueue.main.async { if let bgView = self.backgroundView { self.bringSubviewToFront(bgView) @@ -190,7 +183,6 @@ public class VideoView: UIView { */ public func start() { if !isRendering { - handlers.onStart?() DispatchQueue.main.async { self.bringSubviewToFront(self.contentView) self.isRendering = true @@ -204,7 +196,6 @@ public class VideoView: UIView { */ public func stop() { isRendering = false - handlers.onStop?() } // MARK: - デバッグモード