我想从BMPlayer去除深色层。怎么做?
答案 0 :(得分:0)
我找到了正确的答案:
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
}