Skip to content

Conversation

@urosZoretic
Copy link

@urosZoretic urosZoretic commented Jul 25, 2025

fix: thumbnails preview stayed the same when playing next video, by changing video url and setting up vtt thumbnails

when source url in video.js player is changed and player already exists. calling vttThumbnails({...}) setup again will cause plugin to create multiple thumbnail-preview div containers. As consequence plugin can end up creating multiple containers for different video url sources, but it will show only first one created..

With this fix I have resolve issued to firstly remove old one if it exists and then plugin can create new one as normal. This resolve issue when playing next video in a sequence by changing video url and setting up thumbnails again, but thumbnails stayed the same

I have created PR from my fork, because I am not allowed to push into dev branch

related issues: #16

@urosZoretic urosZoretic changed the title fix: thumbnails preview duplicates fix when source url in video.js player change fix: thumbnails preview stayed the same when playing next video, by changing video url and settingu up vtt thumbnails Jul 25, 2025
@urosZoretic urosZoretic changed the title fix: thumbnails preview stayed the same when playing next video, by changing video url and settingu up vtt thumbnails fix: thumbnails preview stayed the same when playing next video, by changing video url and setting up vtt thumbnails Jul 25, 2025
@lonasozo lonasozo requested a review from marcellov7 July 26, 2025 23:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant