Merge pull request #6 from andrew-shulgin/patch-1

Add SSL proxy support in Player frame
This commit is contained in:
Christoph Johannsdotter
2016-02-24 22:51:53 +01:00

View File

@@ -21,7 +21,7 @@
</div>
<script>
var player = new Clappr.Player({
source: "http://" + window.location.hostname + ":" + window.location.port + "/hls/live.stream.m3u8",
source: ("https:" === window.location.protocol ? "https:" : "http:") + "//" + window.location.hostname + ":" + window.location.port + "/hls/live.stream.m3u8",
parentId: "#player",
baseUrl: '/libs/clappr/dist/',
poster: "images/live.jpg",