Changeset - 60dd711e18a2
[Not reviewed]
0 1 0
Brett Smith - 5 years ago 2019-02-04 08:49:49
brettcsmith@brettcsmith.org
livestream: Only autoplay the main stage.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
pinaxcon/templates/static_pages/livestream/index.html
Show inline comments
...
 
@@ -52,49 +52,49 @@
 
      //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,
 
      autoPlay: false,
 

	
 
      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,
 
      autoPlay: false,
 

	
 
      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");
0 comments (0 inline, 0 general)