Answer the question
In order to leave comments, you need to log in
How to run the next track in React in video.js?
Hello, I created a player on React, everything works, but it turned out to be compatible with the video.js player.
I mount the player in componentDidMount()
this.player = videojs(this.videoNode, this.state.videoJsOptions);
videoJsOptions: {
sources: [
{
src: 'URL',
type: ''MIME,
},
],
}
Answer the question
In order to leave comments, you need to log in
It seems that I figured it out myself, if anyone encounters the same, here is the solution:
player.src({
src: 'http://......',
type: 'video/mp4'
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question