-
Hi everyone, I have a question about the chapters and the thumbnails. const playerRef = ref<MediaPlayer>();
onMounted(() => {
const track = new TextTrack({
kind: 'chapters',
type: 'vtt',
default: true
});
track.mode = 'showing';
track.addCue(new VTTCue(0, 50, 'My first chapter'));
track.addCue(new VTTCue(51, 500, 'My second chapter'));
playerRef.value?.textTracks.add(track);
}); With my player defined as: <media-player ref="playerRef" :title="video?.name" :src="mysource">
<media-provider>
</media-provider>
</media-player> However, I cannot figure out how to add chapter image to each chapter text? Thanks for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey there! There's no way at the moment to specify a thumbnail for a specific chapter. As you've noticed we map the thumbnails to the chapters automatically based on start time. This can be a feature request which you can open a new issue for if you like :) |
Beta Was this translation helpful? Give feedback.
Hey there! There's no way at the moment to specify a thumbnail for a specific chapter. As you've noticed we map the thumbnails to the chapters automatically based on start time. This can be a feature request which you can open a new issue for if you like :)