Skip to content

Commit

Permalink
chore: 불필요한 코드 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyxxn committed Dec 3, 2024
1 parent 5741cd0 commit 2e3113c
Showing 1 changed file with 1 addition and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,10 @@ final class MHVideoView: UIView {
playerViewController.showsPlaybackControls = true
}

func configureConstraint() {
private func configureConstraint() {
addSubview(playerViewController.view)
playerViewController.view.fillSuperview()
}

func play() {
playerViewController.player?.play()
}

func pause() {
playerViewController.player?.pause()
}

func seek(to time: CMTime) {
playerViewController.player?.seek(to: time)
}
}

extension MHVideoView: @preconcurrency MediaAttachable {
Expand All @@ -52,7 +40,6 @@ extension MHVideoView: @preconcurrency MediaAttachable {

func configureSource(with mediaDescription: MediaDescription, url: URL) {
let player = AVPlayer(url: url)
MHLogger.debug("\(#function): \(url)")
configurePlayer(player: player)
}
}

0 comments on commit 2e3113c

Please sign in to comment.