Skip to content

Commit

Permalink
不要なハンドラを削除
Browse files Browse the repository at this point in the history
  • Loading branch information
zztkm committed Oct 8, 2024
1 parent 8f57757 commit a53ec1f
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions Sora/VideoView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)?
}

/**
Expand Down Expand Up @@ -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)
Expand All @@ -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
Expand All @@ -204,7 +196,6 @@ public class VideoView: UIView {
*/
public func stop() {
isRendering = false
handlers.onStop?()
}

// MARK: - デバッグモード
Expand Down

0 comments on commit a53ec1f

Please sign in to comment.