如何从 BMPLayer iOS Swift 中删除视频上的暗层?
Posted
技术标签:
【中文标题】如何从 BMPLayer iOS Swift 中删除视频上的暗层?【英文标题】:How to remove dark layer on video from BMPLayer iOS Swift? 【发布时间】:2019-05-29 10:57:25 【问题描述】:我想从 BMPlayer 中删除暗层。怎么做?
【问题讨论】:
【参考方案1】:我找到了正确答案:
player.controlView.mainMaskView.isHidden = true
并像这样使用它:
func bmPlayer(player: BMPlayer, playerIsPlaying playing: Bool)
print("| BMPlayerDelegate | playerIsPlaying | playing - \(playing)")
player.controlView.mainMaskView.isHidden = true
func bmPlayer(player: BMPlayer, playerStateDidChange state: BMPlayerState)
print("| BMPlayerDelegate | playerStateDidChange | state - \(state)")
player.controlView.mainMaskView.isHidden = true
func bmPlayer(player: BMPlayer, playTimeDidChange currentTime: TimeInterval, totalTime: TimeInterval)
player.controlView.mainMaskView.isHidden = true
func bmPlayer(player: BMPlayer, loadedTimeDidChange loadedDuration: TimeInterval, totalDuration: TimeInterval)
player.controlView.mainMaskView.isHidden = true
【讨论】:
以上是关于如何从 BMPLayer iOS Swift 中删除视频上的暗层?的主要内容,如果未能解决你的问题,请参考以下文章
如何使用 swift 从 iOS 设备上传文件(到 REDCap)