mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-10-06 22:32:41 +07:00
fix: Next video link
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user