-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(playlist-plugin): implement smart navigation based on playback p…
…osition Resolves #17 by implementing smart navigation to the previous item in the playlist based on the current playback position: - If playback is beyond the threshold, the current media is restarted. - If playback is within the threshold, the previous item is navigated to. - For live media, the previous items is always played regardless of the current playback position. - The threshold functionality can be disabled by setting the value to undefined. Example usage: ```javascript import pillarbox from '@srgssr/pillarbox-web'; import './src/pillarbox-playlist-ui.js'; window.player = pillarbox('player', { plugins: { pillarboxPlaylist: { // The threshold in seconds previousNavigationThreshold: 10 } } }); ```
- Loading branch information
Showing
3 changed files
with
86 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters