Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

PHP file supplier with Jw Player 6


I have a scenario similar to this option:
http://www.longtailvideo.com/support/forums/jw-player/servers-and-streaming/29908/no-playable-sources-found-with-my-own-mp3-file-streamer

My setup is available here:
http://www.edmontonimmanuel.ca/sermons_view3.php?pagename=audiosermons2

My Scenario:

This works:
bc.. jwplayer("player").setup({
primary: "flash",
file: "./download_sermonpriv.php?filename=./sermons_priv/2012-12-16PM-3.mp3",
type: "mp3",
height: 250,
width: 470,
controls: true,
allowscriptaccess: 'always',
});



However if I want to use the download_sermonpriv.php script in a playlist, like this...I get the no playable sources found error:

bc.. jwplayer("player").setup({
primary: "flash",
playlist: "./test.rss",
height: 250,
width: 470,
controls: true,
allowscriptaccess: 'always',
});


test.rss:
bc.. <rss version="2.0" xmlns:media="http://video.search.yahoo.com/mrss/">
<channel>
<title>www.edmontonimmanuel.ca</title>
<item>
<title>Track 1</title>
<description>Track 1</description>
<media:thumbnail url="/images/backgrounds/header780.jpg" />
<media:content url="./download_sermonpriv.php?filename=./sermons_priv/2012-12-16PM-3.mp3" type="audio/mpeg" />
</item>
</channel>
</rss>



Note: visiting the /download_sermonpriv.php?filename=./sermons_priv/2012-12-16PM-3.mp3 page correctly serves up the mp3 file.

Note: Ethan just helped me on getting the flash working in this thread...as you can see, I am slowly making this more difficult :-) --> http://www.longtailvideo.com/support/forums/jw-player/using-playlists/30243/playlist-issues-with-flash

12 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

You need to set the type variable to mp3. (either in your setup, on in the playlist item)

JW Player

User  
0 rated :

Hmm....I thought I was doing that here, but maybe I am confused:

bc.. <media:content url="./download_sermonpriv.php?filename=./sermons_priv/2012-12-16PM-3.mp3" type="audio/mpeg" />



If I set type:"mp3", in the setup then the player tries to load the rss file as an mp3....since it isn't an mp3 but rather a rss playlist with mp3s, the player just shows a blank screen.

Ethan Feldman

JW Player Support Agent  
0 rated :

Under that line, add:

<jwplayer:type>mp3</jwplayer:type>

JW Player

User  
0 rated :

Hi Ethan,

Sorry for the delay of Christmas holidays....

I am still having issues.....and added a second test rss file to make sure that my file still works :-)

This still works:
bc.. file: "./download_sermons.php?filename=./sermons/2012-12-16PM-5.mp3",
type:"mp3",



This doesn't work:
bc.. playlist: "./test.rss",


This works:
bc.. playlist: "./test2.rss",



...both rss feeds validate...

test.rss:
bc.. <rss version="2.0" xmlns:media="http://video.search.yahoo.com/mrss/"
xmlns:jwplayer="http://developer.longtailvideo.com/trac/">
<channel>
<title>www.edmontonimmanuel.ca</title>
<description>Sermons</description>
<link>http://www.edmontonimmanuel.ca</link>
<item>
<title>Track 1</title>
<description>Track 1</description>
<media:group>
<media:thumbnail url="/images/backgrounds/header780.jpg" />
<media:content url="./download_sermons.php?filename=./sermons/2012-12-16PM-5.mp3" />
</media:group>
<jwplayer:type>mp3</jwplayer:type>
</item>
</channel>
</rss>



test2.rss:
bc.. <rss version="2.0" xmlns:media="http://video.search.yahoo.com/mrss/"
xmlns:jwplayer="http://developer.longtailvideo.com/trac/">
<channel>
<title>www.edmontonimmanuel.ca</title>
<item>
<title>Track 1</title>
<description>Track 1</description>
<media:group>
<media:thumbnail url="/images/backgrounds/header780.jpg" />
<media:content url="./sermons/2012-12-16PM-5.mp3" type="audio/mpeg" />
</media:group>
<jwplayer:type>"mp3"</jwplayer:type>
</item>
</channel>
</rss>



I am not sure what I am missing here....

Ethan Feldman

JW Player Support Agent  
0 rated :

Can I see where it is not working?

JW Player

User  
0 rated :

Sorry, I forgot to revert the page back to the broken version.

I am loading the test.rss file (2 posts above), with the following code:

bc.. <script type="text/javascript">
jwplayer("player").setup({
primary: "flash",
playlist: "./test.rss",
height: 250,
width: 470,
controls: true,
allowscriptaccess: 'always',
});
</script>



Here is the link:

http://www.edmontonimmanuel.ca/sermons_view3.php?pagename=audiosermons2

JW Player

User  
0 rated :

One other note...
If I test this setup with an HTML5 browser, the rss playlist load properly.

Ethan Feldman

JW Player Support Agent  
0 rated :

I see the issue, please leave this up, thanks.

JeroenW

JW Player Support Agent  
0 rated :

The following setup of the files in your RSS should already work:

<media:content url="./download_sermonpriv.php?filename=./123456.mp3" type="audio/mpeg" />



It looks like we don't correctly translate the "audio/mpeg" mimetype to the "mp3" type. Sounds like a bug, so we'll look into it.

JW Player

User  
0 rated :

Not to be impatient, as this is free support, but what is the standard eta for an issue like this? :-)

JeroenW

JW Player Support Agent  
0 rated :

It’s usually two minor releases out. In this case, the “audio/mpeg” not being detected should go out with 6.2 on February 6th.

JW Player

User  
0 rated :

Great! Thanks!

This question has received the maximum number of answers.