videojs-panorama icon indicating copy to clipboard operation
videojs-panorama copied to clipboard

Player x is already initialised. Options will not be applied. problem

Open whitmanlui opened this issue 8 years ago • 1 comments

Hello, I want to change the src of video, but the log shows "VIDEOJS: WARN: Player x is already initialised. Options will not be applied." How can I remove or dispose the video? I had tried to use .dispose() but not work.

In addition, I'm using angularjs route. If the view is first time entry, then the player will create. When the view is second time entry, the log will shows the play is already initialised. Is there any way to check the player is created or not?

whitmanlui avatar Jan 12 '17 10:01 whitmanlui

Oh, did you try to initial videojs player agian when it's already initialized?

If you want to change the video source, you can do the code below

player.src({src: "url", type: "video/mp4"});

yanwsh avatar Feb 03 '17 04:02 yanwsh