Jwplayer: error loading player: no playable source found

I am using video playback using jwplayer 6. I have a premium account. also using a wowza server for streaming.

jwplayer.key = "XXXXXXXXXXXXXXXXXXX";
jwplayer("player2").setup({
  width: 640,
  height: 360,
  file: "http://209.126.101.166:1935/redirect/hls/ktv33?scheme=m3u8",
  androidhls: true,
  provider: 'http',
  modes: [{
    type: 'flash',
    src: 'jwplayer.flash.swf'
  }],
  flashplayer: 'jwplayer.flash.swf',
  html5player: 'jwplayer.html5.js'
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript" src="jwplayer.js"></script>

<div>
  <div style='clear:both;'>
    <br>
  </div>

  <h2>KTV in JW Player </h2>
  <div id='player2'></div>
</div>
Run code

Error receiving error: "Error loading player: no playback sources available"

Could you help me?

Thanks in advance.

+4
source share
4 answers

I do not believe JWPlayer handles 302 redirects over hls, of which the Wowza Load Balancer uses. The iOS client handles it accordingly (if you want to test this LB functionality).

+2

, , -, ​​ , .

"": "mp4" jwplayer setup(), .

, JWPlayer 7

, .

+1

, JW Player 302 hls.

, :

jwplayer.key = "XXXXXXXXXXXXXXXXXXX";
jwplayer("player2").setup({
  width: 640,
  height: 360,
  file: "http://209.126.101.166:1935/redirect/hls/ktv33?scheme=m3u8",
  androidhls: true
});

, , http://209.126.101.166:1935/redirect/hls/ktv33?scheme=m3u8 , ?

0

I had a similar problem with mp3 files. The solution for me was to change my url:

http://.../12345

:

http://.../12345.mp3

The mime type was set correctly, so maybe there are some file name checks in jwplayer javascript.

0
source

Source: https://habr.com/ru/post/1569983/


All Articles