iPhone m3u streaming?

General discussion about netjukebox
Locked
User avatar
wbartels
netjukebox developer
Posts: 872
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

iPhone m3u streaming?

Post by wbartels »

Apple is working on an extended m3u/m3u8 playlist.
If this will be implemented in the next iPhone than netjukebox and other streaming servers like shoutcast can be used from an iPhone.

http://en.wikipedia.org/wiki/HTTP_Live_Streaming
http://developer.apple.com/iphone/libra ... ction.html
http://www.readwriteweb.com/archives/ap ... o_ietf.php


Update: links updated
jeremy
User
Posts: 36
Joined: Sun Apr 27, 2008 9:15 am

Re: iPhone m3u streaming?

Post by jeremy »

This is great news! Thanks for the links.
Shizzle
User
Posts: 65
Joined: Sat May 28, 2005 9:00 am
Location: Gresham, OR USA
Contact:

Re: iPhone m3u streaming?

Post by Shizzle »

SAWEEEEET!
jeremy
User
Posts: 36
Joined: Sun Apr 27, 2008 9:15 am

Re: iPhone m3u streaming?

Post by jeremy »

Willem, have you looked at this recently? I don't know if it was added in the 3.0 update, but the iPhone now appears to recognize M3U files in Safari. It will launch a player if you click a directly linked file. However, I assume since Netjukebox uses special code to create & send the M3U file to the user when we click on the stream icon, Netjukebox is incompatible. I'd LOVE to see this added, and I'm curious what your thoughts are.

I should note that I'm a few versions behind in updating, so if something's been added recently to add support then forgive me.

Jeremy
User avatar
wbartels
netjukebox developer
Posts: 872
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: iPhone m3u streaming?

Post by wbartels »

Hello Jeremy,

I don’t have an iPhone to test it out.
Maybe you can help me out by giving me some (or better more) websites where the iPhone can stream from.
jeremy
User
Posts: 36
Joined: Sun Apr 27, 2008 9:15 am

Re: iPhone m3u streaming?

Post by jeremy »

wbartels wrote:Hello Jeremy,

I don’t have an iPhone to test it out.
Maybe you can help me out by giving me some (or better more) websites where the iPhone can stream from.
Hmm.... looks like it may be a bust. I can't get it to work at all, even with custom playlist (M3U) linked directly to files on my own web server. The player always complains that it can't play the "movie," so maybe Apple has only included support for MOVs or something like that. Oh well. Thanks for the quick reply.
User avatar
wbartels
netjukebox developer
Posts: 872
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: iPhone m3u streaming?

Post by wbartels »

jeremy wrote:
wbartels wrote:Hello Jeremy,

I don’t have an iPhone to test it out.
Maybe you can help me out by giving me some (or better more) websites where the iPhone can stream from.
Hmm.... looks like it may be a bust. I can't get it to work at all, even with custom playlist (M3U) linked directly to files on my own web server. The player always complains that it can't play the "movie," so maybe Apple has only included support for MOVs or something like that. Oh well. Thanks for the quick reply.
Maybe you can try it out with a mp3 file in the m3u playlist.
User avatar
wbartels
netjukebox developer
Posts: 872
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: iPhone m3u streaming?

Post by wbartels »

The apple CoreMedia player is very picky with the stream implementation.
For example it won't start streaming if the playlist isn't seekable.
(for a static playlist there is absolutely no need to use seek commands)

But with hard work I have basic streaming working on an iPhone.
If the next tests work out positive than the upcoming netjukebox release will have iPod, iPhone & iPad streaming support without the need to install a dedicate application.
User avatar
wbartels
netjukebox developer
Posts: 872
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: iPhone m3u streaming?

Post by wbartels »

iPad streaming is also working with netjukebox 5.20!

Image
Image
jeremy
User
Posts: 36
Joined: Sun Apr 27, 2008 9:15 am

Re: iPhone m3u streaming?

Post by jeremy »

My eyes just exploded. :shock: I didn't catch these last two posts until this morning, and it is the best start to a Monday I can imagine. Thank you! Let me know if you need a beta tester, as I have both iPhone and iPad devices. I've been on the verge of installing server/client software to stream my music, and now I'm glad I waited.

What trickery did you perform to get this working?

Jeremy
User avatar
wbartels
netjukebox developer
Posts: 872
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: iPhone m3u streaming?

Post by wbartels »

jeremy wrote:My eyes just exploded. :shock: I didn't catch these last two posts until this morning, and it is the best start to a Monday I can imagine. Thank you! Let me know if you need a beta tester, as I have both iPhone and iPad devices. I've been on the verge of installing server/client software to stream my music, and now I'm glad I waited.
Thanks!, I will make a public beta version.
The file is available from: netjukebox_5.20beta1.zip
When the final version is available I will delete the beta version.

Jeremy or other testers please try out streaming with different settings, for example:
  • Stream with mp3 @ Low profile from a FLAC file (real time transcoding)
  • And the same profile after the file has been downloaded (stream from cache)
  • Stream from from an mp3 file with the source profile (stream form source)
  • All the above can be done from WiFi or from a cellular network.
I'm very interested in the results!
Thanks for the help :)

jeremy wrote: What trickery did you perform to get this working?
Here are some off the tricks:

For the m3u playlist, netjukebox creates a temporary m3u file in a sub-directory and redirect to that m3u file.
This is needed because the iPhone, iPad & iPod will test with the range header if it is coming from a web-server.

With the new stream.inc.php script netjukebox response the same way as a web-server including: Range, ETag/If-Not-Match, etc...
For real time streaming it fakes the Content-Lengt header based on the bitrate with some overhead.

If you are interested take a look at the stream.php and include/stream.inc.php scripts.
jeremy
User
Posts: 36
Joined: Sun Apr 27, 2008 9:15 am

Re: iPhone m3u streaming?

Post by jeremy »

Replied to you in personal message. Great stuff!
JoelMoors
User
Posts: 1
Joined: Thu Nov 18, 2010 1:19 pm

Re: iPhone m3u streaming?

Post by JoelMoors »

I'm getting an iphone next week and netjukebox works great on the ipad, I hope it works as well on the iphone.
User avatar
wbartels
netjukebox developer
Posts: 872
Joined: Thu Nov 04, 2004 3:12 pm
Location: Netherlands
Contact:

Re: iPhone m3u streaming?

Post by wbartels »

JoelMoors wrote:I'm getting an iphone next week and netjukebox works great on the ipad, I hope it works as well on the iphone.
With the current firmware it should work.
With some older versions of the firmware, somehow only low bitrate streaming did work.
Locked