Videojs not re Initialize
Description
I create function for forward and rewind The Player can't reinit again, and show blank screen
rewindAndForward(skipBy) {
const toMilis = skipBy * 1000;
const duration = CURRENT_TIME + toMilis;
// this for hide and show skip button forwad
if (skipBy < 0) {
this.countSkip -= 1;
} else {
this.countSkip += 1;
}
// save current duration
this.$emit("skip", duration);
// dispose videojs
this.PLAYER.dispose();
this.PLAYER = null;
console.log(this.PLAYER);
// reinit player play
this.initVideo();
console.log(this.PLAYER);
// init timeline
this.timelineBar().destroy();
this.timelineBar().init();
},
### Reduced test case
_No response_
### Steps to reproduce
1.
2.
3.
### Errors
can reinit the player, after disposed
### What version of Video.js are you using?
7
### Video.js plugins used.
_No response_
### What browser(s) including version(s) does this occur with?
Brave Browser
### What OS(es) and version(s) does this occur with?
mac OS latest
👋 Thanks for opening your first issue here! 👋
If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. To help make it easier for us to investigate your issue, please follow the contributing guidelines.
Sorry, it's impossible to suggest what might be wrong from that code fragment. If you create a minimal reproducible case someone might be able to see what's happening. Stackoverflow's explanation of a minimal reproducible example can be helpful.
Thankyou for your answer @mister-ben . i solved this issue