videojs / videojs-contrib-hls

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

External links cannot be played in https websites #1440

Closed beautylix closed 5 years ago

beautylix commented 5 years ago

Description

When I add ssl to my website, videos cannot be played; when I removed the ssl, the videos can be played. By the way, these videos are from external links.

Steps to reproduce

  1. visit my test website with ssl, https://hipick.com/video.html, you will see the video cannot be played
  2. visit my test website without ssl, http://hipick.com/video.html , you will see the video can be played

Results

Expected

I want to add ssl to my website, and I want to play some external videos, how to fix?

Error output

No video with supported format and MIME type found

Additional Information

videojs-contrib-hls version

what version of videojs-contrib-hls does this occur with? videojs-contrib-hls 5.14.1

videojs version

what version of videojs does this occur with? video.js 7.2.0

Browsers

All browsers

gesinger commented 5 years ago

Hey @beautylix , this is a limitation of the browsers requesting mixed content. See https://developers.google.com/web/fundamentals/security/prevent-mixed-content/fixing-mixed-content and https://developer.mozilla.org/en-US/docs/Web/Security/Mixed_content/How_to_fix_website_with_mixed_content for details.

forbesjo commented 5 years ago

Closing since this looks to be answered