Jump to content

Recommended Posts

I have a request from a client to put a "radio" of sorts on their site.  Something where the users can pick a genre and have it stream from another site.

I'm kind of against the idea because it's for a forum... so unless I build a seperate frame, the music will restart everytime they move to a different thread.  Damn.. I just thought of that and I'm not sure how I'd make it work now.

Anyways... if any of you stream audio from a service (even paid), I'd appreciate the recommendations.
Link to comment
https://forums.phpfreaks.com/topic/31096-streaming-audio-for-a-website/
Share on other sites

I made you a solution: http://xaos-ia.com/daniel/frames_test/
Download: http://xaos-ia.com/daniel/frames_test.zip

Either you need to manually add [tt]target='_parent'[/tt] to all links or you need to fix my javascript in real_index.php. You might want to put the javascript in a file for itself as well. Additionally you need to make a noframes version so people with no support for frames, frames turned off or search engines can access the page.
What you requested. The thing is that if you just just frames you will break things such as bookmarking, so you will need some way to pass the GET variables to the frame and make links' target _parent. I just figured out though that this will in fact restart the streaming, so you can choose to break the bookmark feature and keep the links' targets as default.

Unfortunately, I think the best would be a popup window.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.