Files
@ 6fcbaf02484d
Branch filter:
Location: CopyleftConf/copyleftconf-website/pinaxcon/templates/static_pages/livestream/index.html
6fcbaf02484d
3.2 KiB
text/html
homepage: Bugfix the last commit.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 | {% extends "site_base_home.html" %}
{% load i18n %}
{% load staticfiles %}
{% load thumbnail %}
{% load sponsorship_tags %}
{% load schedule_tags %}
{% block body_class %}home{% endblock %}
{% block body %}
<div class="chunkfive tight-headings text-center" style="padding: 1.5em;">
<h1>CopyleftConf Livestream</h1>
</div>
<div class="center-block">
<h3 class="text-center chunkfive">Ada Lovelace (Main Stage)</h3>
<div class="center-block" id="player0"></div>
<p>
Direct link: <a href="https://stream.fosdem.org/ua2220.m3u8">https://stream.fosdem.org/ua2220.m3u8</a>
</p>
<h3 class="text-center chunkfive">Hedy Lamarr</h3>
<div class="center-block" id="player5"></div>
<p>
Direct link: <a href="https://stream.fosdem.org/k3201.m3u8">https://stream.fosdem.org/k3201.m3u8</a>
</p>
<h3 class="text-center chunkfive">Grace Hopper</h3>
<div class="center-block" id="player2"></div>
<p>
Direct link: <a href="https://stream.fosdem.org/aw1120.m3u8">https://stream.fosdem.org/aw1120.m3u8</a>
</p>
<script type="text/javascript" src='{% static "js/clappr.min.js" %}'></script>
<script>
var player0 = new Clappr.Player({
source: "https://stream.fosdem.org/ua2220.m3u8",
baseUrl: "/asset/clappr",
parentId: "#player0",
autoPlay: true,
hlsjsConfig: {
xhrSetup: function(xhr, url) {
xhr.onerror = function() {
player0.stop();
setTimeout(function(){
player0.play();
}, 5000);}}}});
player0.on(Clappr.Events.PLAYER_ERROR, function() {
console.log('retry');
//player.load("https://stream.fosdem.org/ua2220.m3u8");
});
player0.on(Clappr.Events.PLAYBACK_ERROR, function() {
console.log('retry');
//player.load("https://stream.fosdem.org/ua2220.m3u8");
});
var player5 = new Clappr.Player({
source: "https://stream.fosdem.org/k3201.m3u8",
baseUrl: "/asset/clappr",
parentId: "#player5",
autoPlay: true,
hlsjsConfig: {
xhrSetup: function(xhr, url) {
xhr.onerror = function() {
player5.stop();
setTimeout(function(){
player5.play();
}, 5000);}}}});
player5.on(Clappr.Events.PLAYER_ERROR, function() {
console.log('retry');
//player.load("https://stream.fosdem.org/k3201.m3u8");
});
player5.on(Clappr.Events.PLAYBACK_ERROR, function() {
console.log('retry');
//player.load("https://stream.fosdem.org/k3201.m3u8");
});
var player2 = new Clappr.Player({
source: "https://stream.fosdem.org/aw1120.m3u8",
baseUrl: "/asset/clappr",
parentId: "#player2",
autoPlay: true,
hlsjsConfig: {
xhrSetup: function(xhr, url) {
xhr.onerror = function() {
player2.stop();
setTimeout(function(){
player2.play();
}, 5000);}}}});
player2.on(Clappr.Events.PLAYER_ERROR, function() {
console.log('retry');
//player.load("https://stream.fosdem.org/aw1120.m3u8");
});
player2.on(Clappr.Events.PLAYBACK_ERROR, function() {
console.log('retry');
//player.load("https://stream.fosdem.org/aw1120.m3u8");
});
</script>
{% endblock %}
|