BMPlayer icon indicating copy to clipboard operation
BMPlayer copied to clipboard

Disable seek

Open abbasamini opened this issue 7 years ago • 6 comments

i need disable seek controller

abbasamini avatar Oct 18 '17 10:10 abbasamini

you can do this by customizing control ui

abbasamini [email protected]于2017年10月18日周三 下午6:47写道:

i need disable seek controller

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/BrikerMan/BMPlayer/issues/173, or mute the thread https://github.com/notifications/unsubscribe-auth/AI71S-6wmTnfodCWRkGr5PTIg4g-QBqRks5stddSgaJpZM4P9hCC .

BrikerMan avatar Oct 19 '17 05:10 BrikerMan

can you show me an example for disable slide seek

abbasamini avatar Oct 19 '17 10:10 abbasamini

iOS 11, Tag1.0.0 , this code seems not work. BMPlayerConf.enableBrightnessGestures = mViewModel.mGestureEnable BMPlayerConf.enableVolumeGestures = mViewModel.mGestureEnable BMPlayerConf.enablePlaytimeGestures = mViewModel.mGestureEnable

but you can do it like this.(not good idea, but it's work) add this method at all functions of BMPlayerDelegate panGestureDisable()

xiaoxiaocainiao avatar Oct 20 '17 14:10 xiaoxiaocainiao

You can subclass BMPlayerControlView and override prepareUI, add some code like below.

class BMCustomControlView: BMPlayerControlView {
    override func prepareUI(for resource: BMPlayerResource, selectedIndex index: Int) {
        super.prepareUI(for: resource, selectedIndex: index)
        
        mainMaskView.isHidden = true
        bottomMaskView.isHidden = true
        topMaskView.isHidden = true
    }
}

kevin-zqw avatar Nov 23 '17 06:11 kevin-zqw

seems does not work iOS 11.2.6 BMPlayer 1.0.1

hao-li avatar Mar 04 '18 08:03 hao-li

The only thing that worked for me was player?.removeGestureRecognizer(player!.panGesture)

brenoprata10 avatar May 05 '20 12:05 brenoprata10