videojs / videojs-contrib-hls

HLS library for video.js
http://videojs.github.io/videojs-contrib-hls/
Other
2.84k stars 791 forks source link

videojs warning - A plugin named "reloadSourceOnError" already exists #1427

Closed magikstm closed 6 years ago

magikstm commented 6 years ago

Description

I see this warning in Chrome and Firefox consoles: VIDEOJS: WARN: A plugin named "reloadSourceOnError" already exists. You may want to avoid re-registering plugins!

Sources

http://jsbin.com/vokipos/8/edit?html,output (*) I also see it locally with my own streams.

Steps to reproduce

The warning is there before video is started.

videojs-contrib-hls version

videojs-contrib-hls 5.14.1

videojs version

video.js 7.0.2

Browsers

Firefox 60.0.1 Chrome 66.0.3359.181 (Official Build) (64-bit)

Platforms

Windows 7 x64

diegoje commented 6 years ago

I get the same warning here. Appeared after videoJS updated to 7.

ChaplinWang commented 6 years ago

Same issue here:

"dependencies": { "requirejs": "^2.3.5", "videojs": "^1.0.0", "videojs-contrib-ads": "^6.3.0", "videojs-contrib-hls": "^5.14.1", "videojs-flash": "^2.1.0", "videojs-ima": "^1.3.0", "webpack": "^4.8.3", "video.js": "^7.0.2" },

femtasy-dev commented 6 years ago

+1 on Chrome 66 MacOS 10.13.4

plainheart commented 6 years ago

Yes, I have the same problem with you.

saPhil commented 6 years ago

Same issue here.

giantninja commented 6 years ago

I've been seeing the same warning after updating Videojs and videojs-contrib-hls to their latest:

VIDEOJS: WARN: A plugin named "reloadSourceOnError" already exists. You may want to avoid re-registering plugins!

and just in case it's relevant, here's the scripts I'm using:

<script src="https://vjs.zencdn.net/7.0.3/video.js"></script>
<script src="https://unpkg.com/videojs-contrib-hls/dist/videojs-contrib-hls.js"></script>

and screenshot of the warning: https://imgur.com/CHk8IYQ

gkatsev commented 6 years ago

Video.js 7 comes with Video.js HTTP Streaming by default, which is the next generation version of videojs-contrib-hls. If you're using vjs 7 you don't need to include contrib-hls manually anymore.

giantninja commented 6 years ago

I was not aware of that, so thank you for that

gkatsev commented 6 years ago

Looks like that's the resolution for everyone's problem. Sorry I didn't realize earlier and thanks for everyone's patience on this.

If you're using the main Video.js script, you do not need to include videojs-contrib-hls manually as VHS is included by default and has the same functionality.

yoko10000 commented 6 years ago

use the main Video.js 7.0.3, IOS11.4 ,don't play m3u8

gkatsev commented 6 years ago

@yoko10000 that sounds like a separate issue. Can you open a new issue and fill out the issue template?