-
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
-
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.
-
Re: Using Winamp?
And all of it is a terrible idea. Webpages that make any sort of noise without explicit user request are bad.
-
Re: Using Winamp?
I agree, but it could be a nice idea if you didn't have an autoplay for the media.
-
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.
-
Re: Using Winamp?
PHP only generates HTML. To the browser, it is completely irrelevant whether the server uses PHP or not.
-
Re: Using Winamp?
Thanks, but that still didn't answer my question. What would I need to edit to put it in a frame?
-
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>