gpt4 book ai didi

ios - 如何从 tvOS 上的视频中删除进度条或视频条?

转载 作者:行者123 更新时间:2023-11-28 07:31:09 25 4
gpt4 key购买 nike

 @IBAction func buttonPlay(_ sender: Any) {

guard let path = Bundle.main.path(forResource: "NORWAY", ofType: "m4v") else {
debugPrint("video.m4v not found")
print("video playing")
return
}

let player = AVPlayer(url: URL(fileURLWithPath: path))
let controller = AVPlayerViewController()
controller.player = player
present(controller, animated: true) {
player.play()
player.volume = 0

}

}

我希望在用户无法快进或快退视频的情况下循环播放视频。

我想要视频墙纸而不是视频播放器

视频栏

videoBar

最佳答案

您只需隐藏您的播放控件:controller.showsPlaybackControls = false

关于ios - 如何从 tvOS 上的视频中删除进度条或视频条?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54605934/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com