Open abbasamini opened 7 years ago
you can do this by customizing control ui
abbasamini notifications@github.com于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 .
can you show me an example for disable slide seek
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()
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
}
}
seems does not work iOS 11.2.6 BMPlayer 1.0.1
The only thing that worked for me was player?.removeGestureRecognizer(player!.panGesture)
i need disable seek controller