Skip to content

Commit

Permalink
BMPlayerConf affects BMPlayer's playback gestures
Browse files Browse the repository at this point in the history
  • Loading branch information
Mik-chan committed Feb 7, 2018
1 parent 185f05e commit 9af8948
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/BMPlayer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ open class BMPlayer: UIView {
}

fileprivate func horizontalMoved(_ value: CGFloat) {
if !BMPlayerConf.enablePlaytimeGestures { return }
isSliderSliding = true
if let playerItem = playerLayer?.playerItem {
// 每次滑动需要叠加时间,通过一定的比例,使滑动一直处于统一水平
Expand Down

0 comments on commit 9af8948

Please sign in to comment.