diff --git a/Sora/SwiftUIVideoView.swift b/Sora/SwiftUIVideoView.swift index 8cab7612..24eef733 100644 --- a/Sora/SwiftUIVideoView.swift +++ b/Sora/SwiftUIVideoView.swift @@ -115,7 +115,7 @@ public struct SwiftUIVideoView: View where Background: View { } /* - VideoView (UIKit) を SwiftUI view に統合するためのラッパーです。 + UIKitVideoView を SwiftUIVideoView に統合するためのラッパーです。 */ private struct RepresentedVideoView: UIViewRepresentable { typealias UIViewType = UIKitVideoView @@ -126,11 +126,11 @@ private struct RepresentedVideoView: UIViewRepresentable { self.controller = controller } - public func makeUIView(context: Context) -> VideoView { + public func makeUIView(context: Context) -> UIKitVideoView { controller.videoView } - public func updateUIView(_ uiView: VideoView, context: Context) { + public func updateUIView(_ uiView: UIKitVideoView, context: Context) { controller.stream?.videoRenderer = uiView } } @@ -138,9 +138,9 @@ private struct RepresentedVideoView: UIViewRepresentable { class VideoController: ObservableObject { var stream: MediaStream? - // init() で VideoView を生成すると次のエラーが出るので、生成のタイミングを遅らせておく + // init() で UIKitVideoView を生成すると次のエラーが出るので、生成のタイミングを遅らせておく // Failed to bind EAGLDrawable: to GL_RENDERBUFFER 1 - lazy var videoView = VideoView() + lazy var videoView = UIKitVideoView() @Published var isCleared: Bool = false