2016-11-08 2 views
0

JW Le lecteur ne peut pas lire HLS. Voici le code HTML de la page:jwplayer width HLS - Aucune source lisible. Quelle est mon erreur?

<!DOCTYPE> 
<html> 
    <head> 
     <script src='https://content.jwplatform.com/libraries/7XBRYUMN.js'></script> 
     <script>jwplayer.key="***";</script> 
    </head> 
    <body> 
     <div id="my-video"></div> 
     <script type="text/javascript"> 
      jwplayer("my-video").setup({ 
       file: "http://esioslive6-i.akamaihd.net/hls/live/202892/AL_P_ESP1_FR_FRA/playlist.m3u8", 
       width: 400, 
       height: 240, 
       title: "video", 
       hlshtml: true, 
       type: "hls", 
       androidhls: true 
      }); 
     </script> 
    </body> 
</html> 

Le joueur affiche toujours: Erreur de chargement du lecteur: Aucune source lisible n'a été trouvée. HLS vérifié en ligne http://demo.jwplayer.com/stream-tester/ HLS correctement reproduit. quelle est mon erreur?

+0

Vous utilisez une clé de licence d'édition gratuite. HLS avec JW Player nécessite au moins une édition Premium - coûtant 299 $/an: https://www.jwplayer.com/pricing/ – jherrieven

+0

ou vous pouvez simplement utiliser [clappr] (https://github.com/clappr) ou [ video.js] (http://videojs.com/) – aergistal

Répondre

1

Je pense que votre compte sur jwplayer n'autorise pas HLS Adaptive Streaming ou jwplayer.key ne correspond pas au fichier jwplayer js. J'ai vérifier avec le compte du site de démonstration et c'est jouer correctement

<!DOCTYPE> 
<html> 
    <head> 
     <script src="//content.jwplatform.com/libraries/V6NfEzT7.js"></script> 
     <script>jwplayer.key="AIzaSyCCd7R6tUAGAwFNlq0hV_C7GWNEZNhzxa4";</script> 
    </head> 
    <body> 
     <div id="my-video"></div> 
     <script type="text/javascript"> 
      jwplayer("my-video").setup({ 
       file: "http://esioslive6-i.akamaihd.net/hls/live/202892/AL_P_ESP1_FR_FRA/playlist.m3u8", 
       width: 400, 
       height: 240, 
       title: "video", 
       hlshtml: true, 
       type: "hls", 
       androidhls: true 
      }); 
     </script> 
    </body> 
</html>