Double Tab Seeking Left/Right #1218
Answered
by
mihar-22
chethavuthy
asked this question in
Q&A
-
hi there, i would like to know that if there are any possibilities to know if the user double tab seeking left/right, are there any state to watch that is differ from |
Beta Was this translation helpful? Give feedback.
Answered by
mihar-22
Mar 28, 2024
Replies: 1 comment 3 replies
-
Not an officially documented or public API available for this but you can try doing it like this: JS player.addEventListener("media-seek-request", event => {
const originEvent = event.originEvent;
if (originEvent && 'MEDIA_GESTURE' in originEvent) {
// ...
}
}); React import { type MediaSeekRequestEvent } from '@vidstack/react';
function onSeekRequest(time: number, nativeEvent: MediaSeekRequestEvent) {
const originEvent = event.originEvent;
if (originEvent && 'MEDIA_GESTURE' in originEvent) {
// ...
}
}
<MediaPlayer onMediaSeekRequest={onSeekRequest}> |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
chethavuthy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not an officially documented or public API available for this but you can try doing it like this:
JS
React