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 8465148 commit 351d863
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sora/SwiftUIVideoView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@ public struct SwiftUIVideoView<Background>: View where Background: View {

/// 映像フレームの描画開始時に実行されるブロックを指定します。
public func videoOnStart(perform: @escaping () -> Void) -> SwiftUIVideoView<Background> {
controller.videoView.handlers.onDisconnect = perform
controller.videoView.handlers.onStart = perform
return self
}

/// 映像フレームの描画停止時に実行されるブロックを指定します。
public func videoOnStop(perform: @escaping () -> Void) -> SwiftUIVideoView<Background> {
controller.videoView.handlers.onAdded = perform
controller.videoView.handlers.onStop = perform
return self
}

Expand Down

0 comments on commit 351d863

Please sign in to comment.