BrikerMan / BMPlayer

A video player for iOS, based on AVPlayer, support the horizontal, vertical screen. support adjust volume, brightness and seek by slide, support subtitles.
https://eliyar.biz
MIT License
1.97k stars 419 forks source link

Disable seek #173

Open abbasamini opened 7 years ago

abbasamini commented 7 years ago

i need disable seek controller

BrikerMan commented 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 .

abbasamini commented 7 years ago

can you show me an example for disable slide seek

xiaoxiaocainiao commented 7 years ago

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()

kevin-zqw commented 6 years ago

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
    }
}
hao-li commented 6 years ago

seems does not work iOS 11.2.6 BMPlayer 1.0.1

brenoprata10 commented 4 years ago

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