4
votes

I am implementing video playing with jwplayer 6. I have premium edition account. also using 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>

Its getting an error : "Error loading player: No playable sources found"

Can you please help me out ?

Thank you in advance.

5

5 Answers

2
votes

I don't believe JWPlayer handles 302 redirects over hls of which the Wowza Load Balancer utilizes. iOS client does handle it appropriately though (if you were looking to test this LB functionality).

1
votes

It is late but may be someone who having same issue later can use this.

You can add "type": "mp4" in your jwplayer setup() call if the file doesn't have file extension.

This solved this issue in my app where I am using JWPlayer 7

Hope it helps.

0
votes

Indeed, the JW Player does not handle 302 redirects over hls.

Also, your code can be cleaned up a bit:

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

However, it looks like - http://209.126.101.166:1935/redirect/hls/ktv33?scheme=m3u8 is down, do you have a demo that is up?

0
votes

I had a similar issue serving mp3 files. The solution for me was to modify my url from this:

http://.../12345

to this:

http://.../12345.mp3

The mime type was set correctly, so maybe there is are some filename checks in the jwplayer javascript.

0
votes

Before you try the technical answers above, double check that the JW Player account is active and billing is up to date. HLS streaming is a premium feature, even if you're not hosting the files on their servers.