mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
feat(html): add <media-gesture> element (#1305)
This commit is contained in:
@@ -237,7 +237,7 @@ export function VideoSkin(props: VideoSkinProps): ReactNode {
|
||||
<MediaHotkey keys="m" action="toggleMuted" />
|
||||
<MediaHotkey keys="f" action="toggleFullscreen" />
|
||||
<MediaHotkey keys="c" action="toggleSubtitles" />
|
||||
<MediaHotkey keys="i" action="togglePiP" />
|
||||
<MediaHotkey keys="i" action="togglePictureInPicture" />
|
||||
<MediaHotkey keys="ArrowRight" action="seekStep" value={5} />
|
||||
<MediaHotkey keys="ArrowLeft" action="seekStep" value={-5} />
|
||||
<MediaHotkey keys="l" action="seekStep" value={10} />
|
||||
|
||||
@@ -15,7 +15,7 @@ export const PiPButton = createMediaButton<PiPButtonCore, PiPButtonProps>({
|
||||
stateAttrMap: PiPButtonDataAttrs,
|
||||
selector: selectPiP,
|
||||
action: (core, state) => core.toggle(state),
|
||||
hotkeyAction: 'togglePiP',
|
||||
hotkeyAction: 'togglePictureInPicture',
|
||||
});
|
||||
|
||||
export namespace PiPButton {
|
||||
|
||||
Reference in New Issue
Block a user