fix: Next video link

This commit is contained in:
Yiannis Christodoulou
2025-07-22 02:07:01 +03:00
parent df2e168184
commit de520e9faa
2 changed files with 13 additions and 2 deletions
@@ -6,6 +6,7 @@ const Button = videojs.getComponent('Button');
class NextVideoButton extends Button {
constructor(player, options) {
super(player, options);
this.nextLink = options.nextLink || '';
}
createEl() {
@@ -42,6 +43,7 @@ class NextVideoButton extends Button {
}
handleClick() {
console.log('NextVideoButton handleClick', this.nextLink);
this.player().trigger('nextVideo');
}
}