Old 31st July 2012, 17:28   #1
David Henry
Junior Member
 
Join Date: Jul 2012
Posts: 4
Creating a html5 player

Hi Guys,

We are creating a custom HMTL5 player but we need to get the streams in some standard formats.

for example, we have an 80s station here:
http://50.7.224.250:10028/

but how do I get the streams with an extension that ends like this:

http://50.7.224.250:10028/stream.mp3
or
http://50.7.224.250:10028/stream.ogg

Is this possible?

David
David Henry is offline   Reply With Quote
Old 31st July 2012, 17:31   #2
nwgator
Member
 
Join Date: Oct 2008
Location: Jacksonville, FL
Posts: 72
For MP3 Streams your link will look like this "http://50.7.224.250:10028/;" (No quotes).

You can try adding stream.mp3 or stream.ogg after the ; but that most likely won't work, as it's not really changing the format of the stream itself.

I would recommend having some sort of fallback, because not all browsers at this point fully support the HTML5 Audio attribute.
nwgator is offline   Reply With Quote
Old 31st July 2012, 19:38   #3
DrO
 
Join Date: Sep 2003
Posts: 27,873
doing /;stream.mp3 or /;stream.ogg should do it with a v1 DNAS (as you seem to be using). if using a v2 DNAS then you could do it natively via the streampath option.

however, i hope you're not trying to do as you've actually posted and fool the player into thinking it's getting an ogg stream when it's an mp3 stream (that will not work).

and i assume you're taking into account the massive disparity in what the different html5 audio implementations support when it comes to codec support (or rather the lack of codec support).

-daz
DrO is offline   Reply With Quote
Old 12th September 2012, 12:15   #4
David Henry
Junior Member
 
Join Date: Jul 2012
Posts: 4
Yes, it's all a learning curve...

This is we are now using...

http://50.7.224.250:10028/;stream/1

And...

http://www.onlineshoutcast.com:8068/;stream/1

both are working fine, we have everything working on ipad/iphone and desktop.

Now if only we could extract the id3 tags

Thanks for your help.

David
David Henry is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Tags
extension, file, file extension, ogg

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump