Keyboard shortcuts for player
Keyboard shortcuts greatly enhance user interaction by enabling fast, seamless control of video playback without relying on on-screen controls. They allow users to perform actions more quickly, improving the overall efficiency and accessibility of the player. This is especially valuable for those who need an easier way to navigate videos, such as during presentations or multitasking. Additionally, shortcuts enable uninterrupted content viewing by minimizing the need for manual adjustments. FastPix Player offers customization options, allowing users to disable or modify specific shortcuts to fit their personal preferences and viewing habits.
Common keyboard shortcuts
Action | Key | Description |
---|---|---|
Toggle Play/Pause | K | Plays the video if paused; pauses it if playing. |
Toggle Full Screen | F | Switches to full screen; pressing again exits full screen mode. |
Skip Backward | Arrow Left | Skips backward by the duration specified in the backward-seek-offset setting. |
Skip Forward | Arrow Right | Skips forward by the duration specified in the forward-seek-offset setting. |
Mute/Unmute | M | Mutes the audio if unmuted; unmutes it if muted. |
Increase volume | Arrow Up | Increases the volume. |
Decrease volume | Arrow Down | Decreases the volume. |
Accessibility and customization
Disabling all keyboard control
To disable all keyboard shortcuts, add the disable-keyboard-controls
attribute to the player configuration:
<fp-player
playbackId="Playback ID"
thumbnail-time="5"
playback-rates="1 4 5 6 7 2"
forward-seek-offset="30"
disable-keyboard-controls
></fp-player>
Disabling specific keyboard controls
You can disable individual keyboard controls by setting the hotKey property. For example, to disable the 'K' key:
<fp-player
playbackId="Playback ID"
thumbnail-time="5"
forward-seek-offset="30"
placeholder=""
thumbnail-time="5"
playback-rates="1 4 5 6 7 2"
forward-seek-offset="30"
hot-key="keyK"
></fp-player>
To disable multiple keys, use the hotKeys property. For example, to disable both the 'K' and 'F' keys:
<fp-player
playback-id="7bff10bc-8147-4331-b864-6e5bc4d904cd"
thumbnail-time="5"
playback-rates="1 4 5 6 7 2"
forward-seek-offset="30"
hot-keys="keyK keyF"
></fp-player>
These keyboard shortcuts are designed to enhance your experience with the FastPix Player, making it easier and more efficient to control playback, volume, and screen modes. You can customize the controls as needed to create the optimal viewing experience.
Updated 1 day ago