2016-11-08 11 views
0

JW 플레이어가 HLS를 재생할 수 없습니다. 다음 페이지 내 HTML 코드는 다음과 같습니다jwplayer 너비 HLS - 재생할 수있는 소스가 없습니다. 내 실수는 뭐니?

<!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> 

플레이어가 항상 표시 : 오류 로딩 플레이어 : 재생 가능한 소스를 찾을 수 없습니다. HLS가 온라인으로 확인 됨 http://demo.jwplayer.com/stream-tester/ HLS가 올바르게 재생되었습니다. 내 실수는 무엇입니까?

+0

무료 에디션 라이센스 키를 사용 중입니다. JW Player를 사용하는 HLS는 최소한 $ 299/yr 비용의 프리미엄 에디션 (https://www.jwplayer.com/pricing/ – jherrieven

+0

)이 필요하거나 [clappr] (https://github.com/clappr) 또는 [ video.js] (http://videojs.com/) – aergistal

답변

1

jwplayer의 계정이 HLS 적응 형 스트리밍에 대한 권한이 없거나 jwplayer.key가 jwplayer js 파일과 일치하지 않는다고 생각합니다. 데모 사이트의 계정으로 확인했는데 올바르게 재생됩니다.

<!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>