Skip to content

Commit

Permalink
debug print
Browse files Browse the repository at this point in the history
  • Loading branch information
zztkm committed Oct 2, 2024
1 parent b879a5a commit 8f6361d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions Sora/SwiftUIVideoView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,11 @@ public struct SwiftUIVideoView<Background>: View where Background: View {
TODO(zztkm): State で更新できるか確認する
*/
private func videoStop(_ flag: Bool) {
print("kensaku: videoStop(\(flag))")
if flag {
controller.videoView.stop()
} else if !controller.videoView.isRendering {
controller.videoView.start()
}
print("kensaku: \(controller.videoView.isRendering)")
}

/**
Expand Down
1 change: 1 addition & 0 deletions Sora/VideoView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ public class VideoView: UIView {
描画の停止中は ``render(videoFrame:)`` が実行されません。
*/
public func stop() {
print("call stop")
isRendering = false
}

Expand Down

0 comments on commit 8f6361d

Please sign in to comment.