如何从BMPLayer iOS Swift删除视频上的暗层?

时间:2019-05-29 10:57:25

标签: ios swift xcode uiview

我想从BMPlayer去除深色层。怎么做?

1 个答案:

答案 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
}