Stream links which 'open' and not 'save'

Talk about Audio On Demand or Streaming
Post Reply
User avatar
Busby
Posts: 4
Joined: Tue Oct 09, 2012 5:00 pm
Location: Isle of Man
Contact:

Stream links which 'open' and not 'save'

Post by Busby »

I'm rebuilding my site and discovered that the 'listen' links no longer work like they used to.

If I created a 'pls' link it used to open in Winamp, asx in Media Player and so on, all they do now is save a file.

Any suggestions as to how I fix this (if possible) would be most welcome.
Image
User avatar
Jay
Will work for food (Administrator)
Posts: 3027
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Re: Stream links which 'open' and not 'save'

Post by Jay »

You will need to re-associate those files extensions to your favorite local applications. These capabilities don't come by default. These associations are also a device specific choice. So be aware that just because it works on your device does not automatically mean that is the way it will function for everyone else.
- Jay
User avatar
Busby
Posts: 4
Joined: Tue Oct 09, 2012 5:00 pm
Location: Isle of Man
Contact:

Re: Stream links which 'open' and not 'save'

Post by Busby »

Ah, right Jay - I had thought that might be the case, but hoped there would be some way of forcing the link to open in any device instead of downloading.

I have tried using direct mp3 links instead of playlist files, which at least opens in a browser, but I presently have multiple servers listed in my playlists in the event a server is down or full.

Any other ways of dealing with this or is that how things are?
Image
User avatar
Jay
Will work for food (Administrator)
Posts: 3027
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Re: Stream links which 'open' and not 'save'

Post by Jay »

If you are running all MP3 streams then you can use the <audio> tag in browsers to detect if the browser supports mp3 codecs. If it does your station can play in that element. Also check out WebAudio to see all of the options. While this will play your station through the browser if you want to show Now playing information you will need to do a little javascript magic to get that working.

For distributing your listeners among relays you can also deploy some javascript to select a random relay for your audio component.
- Jay
User avatar
Busby
Posts: 4
Joined: Tue Oct 09, 2012 5:00 pm
Location: Isle of Man
Contact:

Re: Stream links which 'open' and not 'save'

Post by Busby »

Thanks Jay..

I'm not a coder so it means not a lot to me I'm afraid. If there was a sample file I could modify I might be able to manage, but without that I'm at a loss..
Image
dj001
Posts: 42
Joined: Sat May 03, 2008 6:31 am

Re: Stream links which 'open' and not 'save'

Post by dj001 »

You'll find the current situation explained in the first FAQ here: http://soukous.org/faq.htm. At present, I'd recommend using rcast's embedded players everywhere. I still have a full set of listen-links, but browsers have become very protectionist due to uncontrolled hacking. The best bet is to associate your listen-link files with the best respective media player, and test using Firefox. The embedded players just give visitors to your website instant access, without all the tech hassle. I've given up on station ID PHP prerolls, because I didn't have time to reconfigure them.
Post Reply