Skip to content

Commit

Permalink
Fix tap to seek not using skip interval setting (#6288)
Browse files Browse the repository at this point in the history
  • Loading branch information
absidue authored Dec 6, 2024
1 parent b6876e2 commit ed9542f
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,12 @@ export default defineComponent({
return store.getters.getDefaultSkipInterval
})

watch(defaultSkipInterval, (newValue) => {
ui.configure({
tapSeekDistance: newValue
})
})

/** @type {import('vue').ComputedRef<number | 'auto'>} */
const defaultQuality = computed(() => {
const value = store.getters.getDefaultQuality
Expand Down Expand Up @@ -839,6 +845,7 @@ export default defineComponent({
addBigPlayButton: displayVideoPlayButton.value,
enableFullscreenOnRotation: enterFullscreenOnDisplayRotate.value,
playbackRates: playbackRates.value,
tapSeekDistance: defaultSkipInterval.value,

// we have our own ones (shaka-player's ones are quite limited)
enableKeyboardPlaybackControls: false,
Expand Down

0 comments on commit ed9542f

Please sign in to comment.