Skip to content

Commit

Permalink
Merge pull request BrikerMan#174 from jjyy1008/master
Browse files Browse the repository at this point in the history
let user choose to enable if the chooseDefinitionView is hidden
  • Loading branch information
BrikerMan authored Oct 30, 2017
2 parents 3162192 + 0803b58 commit c5bf08b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Source/BMPlayerControlView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ open class BMPlayerControlView: UIView {
open func updateUI(_ isForFullScreen: Bool) {
isFullscreen = isForFullScreen
fullscreenButton.isSelected = isForFullScreen
chooseDefitionView.isHidden = !isForFullScreen
chooseDefitionView.isHidden = !BMPlayerConf.enableChooseDefinition || !isForFullScreen
if isForFullScreen {
if BMPlayerConf.topBarShowInCase.rawValue == 2 {
topMaskView.isHidden = true
Expand Down
2 changes: 2 additions & 0 deletions Source/Default/BMPlayerManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ open class BMPlayerManager {
open var enableVolumeGestures = true
open var enablePlaytimeGestures = true

open var enableChooseDefinition = true

internal static func asset(for resouce: BMPlayerResourceDefinition) -> AVURLAsset {
return AVURLAsset(url: resouce.url, options: resouce.options)
}
Expand Down

0 comments on commit c5bf08b

Please sign in to comment.