|
-
Oct 31st, 2006, 01:55 AM
#1
Thread Starter
Lively Member
Using Winamp?
I am helping a friend start a SMF forum, and he wants it to play music, and it uses PHP. I did some research on Google and everyone said Winamp was the way to go.
I remember a long time in the past, I had Winamp on a simple HTML web page. Recently, all I have been able to find is the .exe for Windows.
So where would I get it, and is there a PHP script for it? And is there a say to stop it from restarting every time someone clicks a link?
-Zach
-
Oct 31st, 2006, 03:44 AM
#2
Re: Using Winamp?
playing media has nothing to do with PHP. you just embed mp3s in a page (or make a flash player and call them, then play them within the flash object -- this is more secure, if you don't want even the possibility of your mp3 files actually being downloaded and saved by your users).
to physically make a song keep playing even though you were changing pages: there is no way around that if you're loading it on every page. what you could do instead is put the embedded media in a frame -- this way, the only time the media would restart is when the media frame was reloaded/changed.
-
Oct 31st, 2006, 07:54 AM
#3
Re: Using Winamp?
And all of it is a terrible idea. Webpages that make any sort of noise without explicit user request are bad.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 31st, 2006, 02:30 PM
#4
Re: Using Winamp?
I agree, but it could be a nice idea if you didn't have an autoplay for the media.
-
Oct 31st, 2006, 05:32 PM
#5
Thread Starter
Lively Member
Re: Using Winamp?
I don't think you guys understood what I meant.
@CornedBee: It would be optional. There will be an option in the user's profile to turn it on/off.
And how would I put the main forum in a frame (and the player outside the frame)? I could do it in HTML, but to be honest, I know nearly nothing about PHP.
-
Oct 31st, 2006, 06:18 PM
#6
Re: Using Winamp?
PHP only generates HTML. To the browser, it is completely irrelevant whether the server uses PHP or not.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 31st, 2006, 07:30 PM
#7
Thread Starter
Lively Member
Re: Using Winamp?
Thanks, but that still didn't answer my question. What would I need to edit to put it in a frame?
-
Nov 1st, 2006, 04:39 AM
#8
Re: Using Winamp?
frames are part of HTML, that's the only way to do it. like CornedBee said, PHP only generates HTML.
if you don't know HOW to make frames, then you can just make an index file that has a frameset of * height with the source of your forum's index page, and then add the media player frame with like 50-100 pixels height with the source being your media player page. something like this:
Code:
<frameset rows="*, 100">
<frame src="./forums/index.php">
<frame src="./mediaplayer.php">
</frameset>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|