From 8f577575c0749c8df7429cc44ff4cd19a0c88dae Mon Sep 17 00:00:00 2001 From: zztkm Date: Tue, 8 Oct 2024 15:01:11 +0900 Subject: [PATCH] =?UTF-8?q?handler=20=E3=81=AE=E5=AE=9F=E8=A1=8C=E3=82=BF?= =?UTF-8?q?=E3=82=A4=E3=83=9F=E3=83=B3=E3=82=B0=E3=82=92=E8=AA=BF=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sora/VideoView.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sora/VideoView.swift b/Sora/VideoView.swift index 57457f78..f9cd1cdd 100644 --- a/Sora/VideoView.swift +++ b/Sora/VideoView.swift @@ -174,6 +174,7 @@ public class VideoView: UIView { */ public func clear() { if !isRendering { + handlers.onClear?() DispatchQueue.main.async { if let bgView = self.backgroundView { self.bringSubviewToFront(bgView) @@ -181,7 +182,6 @@ public class VideoView: UIView { self.bringSubviewToFront(self.defaultBackgroundView) } } - handlers.onClear?() } } @@ -190,11 +190,11 @@ public class VideoView: UIView { */ public func start() { if !isRendering { + handlers.onStart?() DispatchQueue.main.async { self.bringSubviewToFront(self.contentView) self.isRendering = true } - handlers.onStart?() } }