Mohini
Mohini

Reputation: 407

Jwplayer : Error loading player: No playable sources found

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.

Upvotes: 4

Views: 15547

Answers (5)

squarecandy
squarecandy

Reputation: 5107

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.

Upvotes: 0

kheya
kheya

Reputation: 7612

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.

Upvotes: 1

Brian Maltzan
Brian Maltzan

Reputation: 1327

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.

Upvotes: 0

emaxsaun
emaxsaun

Reputation: 4201

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?

Upvotes: 0

The Wowza Guru
The Wowza Guru

Reputation: 31

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).

Upvotes: 2

Related Questions