TareqAlqutami / rtmp-hls-server

a docker file to create a streaming server that supports RTMP, HLS and DASH content based on nginx and nginx-rtmp-module.
MIT License
402 stars 193 forks source link

HLS / MPD browser blocked mix content #23

Closed WyattYung closed 3 years ago

WyattYung commented 3 years ago

When I use dashjs or hls.js to embed hls/mpd url into a https webpage eg. http://localhost:8080/dash/test_src.mpd http://localhost:8080/hls/test.m3u8

browser was blocked the file, and the error msg is: "This request has been blocked; the content must be served over HTTPS."

How to make http to https as browser blocked mix content

bharathmsd7 commented 3 years ago

When I use dashjs or hls.js to embed hls/mpd url into a https webpage eg. http://localhost:8080/dash/test_src.mpd http://localhost:8080/hls/test.m3u8

browser was blocked the file, and the error msg is: "This request has been blocked; the content must be served over HTTPS."

How to make http to https as browser blocked mix content

When I use dashjs or hls.js to embed hls/mpd url into a https webpage eg. http://localhost:8080/dash/test_src.mpd http://localhost:8080/hls/test.m3u8

browser was blocked the file, and the error msg is: "This request has been blocked; the content must be served over HTTPS."

How to make http to https as browser blocked mix content

Make ssl on in nginx.conf and add your ssl certificates to it.