Add multiple timestamp support / markers
Opened this issue · 2 comments
leviking commented
I'd like to be able to include this player in my app, it takes a users text query and searches through an audio file and finds any time in which the word or phrase in the query is said in the audio file. We currently do this through markers in the videojs player, but would like a nice webcomponent player for just audio. We basically just need the player to:
- Take an array of timestamps as an argument
- Add marker to the progress bar for each timestamp in array
- Add function to update current-time to next timestamp to jump between timestamps with arrow keys
gorork commented
Thanks @leviking. A sample timestamp array for reference:
"startTime": [
1084.98,
1336.11,
1694.01,
2144.48,
2245.52,
2514.05,
2798.73,
4046.65,
4439.63,
4831.07
]
gorork commented
For keyboard users we would need to change the skipping (forward) logic.
- On skip, check what would happen sooner: next marker or skip interval; then skip to the soonest of them.