Results 1 to 8 of 8

Thread: Using Winamp?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2005
    Posts
    109

    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

  2. #2
    PowerPoster
    Join Date
    Sep 2003
    Location
    Edmonton, AB, Canada
    Posts
    2,629

    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.
    Like Archer? Check out some Sterling Archer quotes.

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    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.

  4. #4
    PowerPoster
    Join Date
    Sep 2003
    Location
    Edmonton, AB, Canada
    Posts
    2,629

    Re: Using Winamp?

    I agree, but it could be a nice idea if you didn't have an autoplay for the media.
    Like Archer? Check out some Sterling Archer quotes.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Dec 2005
    Posts
    109

    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.

  6. #6
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    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.

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Dec 2005
    Posts
    109

    Re: Using Winamp?

    Thanks, but that still didn't answer my question. What would I need to edit to put it in a frame?

  8. #8
    PowerPoster
    Join Date
    Sep 2003
    Location
    Edmonton, AB, Canada
    Posts
    2,629

    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>
    Like Archer? Check out some Sterling Archer quotes.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width