Disable keyboard controls for video player in flutter web

Issue

I am using Flicker video player to play videos from network in flutter web. When I disable the controls and hide them, it’s still working with keyboard shortcuts like m for mute unmute, left right keys for forward and backward. I want to disable these keyboard shortcuts as well. Anybody did this or know about this ? Thanks

Solution

Flick Video Player dependency documentation says;

You can pass webKeyDownHandler argument to FlickVideoPlayer and manage the keyboard shortcuts yourself.

Maybe with this parameter you can pass null values to shortcuts and disable them. Check it out.

Answered By – SLendeR

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published