Play Music in background while browsing though website

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Muddasir
    New Member
    • Jun 2007
    • 49

    Play Music in background while browsing though website

    Hi everyone.

    How can I play music in background while user can browse through my website. Uptill now I have created a music player which plays audio tracks but as soon as users jumps to another page the music stops.

    How can I achieve this. any ideas !!!!!


    Regards

    Muddasir Hussain
  • Muddasir
    New Member
    • Jun 2007
    • 49

    #2
    anybody ?

    Comment

    • Markus
      Recognized Expert Expert
      • Jun 2007
      • 6092

      #3
      What are you using to play the sound?

      P.S. Do not rush people - this is a privilege, not a service.

      Mark.
      (moderator)

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        this thread should be moved to HTML forum, since it’s got nothing to do with PHP. please ask a Moderator to move it there.

        Comment

        • Markus
          Recognized Expert Expert
          • Jun 2007
          • 6092

          #5
          Originally posted by Dormilich
          this thread should be moved to HTML forum, since it’s got nothing to do with PHP. please ask a Moderator to move it there.
          See my post above. When the user responds on the method used, I'll move it to the appropriate forum.

          Mark.

          Comment

          • numberwhun
            Recognized Expert Moderator Specialist
            • May 2007
            • 3467

            #6
            On a side note, I personally think its just wrong to put music on to a site for a user to listen to, that they didn't choose to begin with. I usually find a way to disable it if I can as it usually conflicts with whatever I already am listening to. Just my .02.

            Regards,

            Jeff

            Comment

            • MrMancunian
              Recognized Expert Contributor
              • Jul 2008
              • 569

              #7
              Originally posted by numberwhun
              On a side note, I personally think its just wrong to put music on to a site for a user to listen to, that they didn't choose to begin with. I usually find a way to disable it if I can as it usually conflicts with whatever I already am listening to. Just my .02.

              Regards,

              Jeff
              I totally agree with you, but that's a design question :-)

              Muddasir, you could divide your page in two frames. One of 100% and one of 0%, to make it invisible. In the 0% frame you put your music stuff and in the other one the rest. This will only work if you reload only the 100% frame and not the index.php where the frames are defined!

              Steven

              Comment

              • Muddasir
                New Member
                • Jun 2007
                • 49

                #8
                Thank you all for replying.

                I am using embed code for player. It also has a feature of adding music to play list. Actually its the requirement of the project to keep playing the music while user can browse through the site.

                @Steven: thanks i will try that

                and my apologies for posting this question in this section rather than in html forum

                Regards
                - Muddasir

                Comment

                • zorgi
                  Recognized Expert Contributor
                  • Mar 2008
                  • 431

                  #9
                  Originally posted by numberwhun
                  On a side note, I personally think its just wrong to put music on to a site for a user to listen to, that they didn't choose to begin with. I usually find a way to disable it if I can as it usually conflicts with whatever I already am listening to. Just my .02.

                  Regards,

                  Jeff
                  I was of the same opinion until recent. A friend of mine (photographer) showed me a site (gallery) with music that was working so well with the art work presented. Like sometime they do for real world galleries. After seeing that example I am not so quick on dismissing music on the site. But hey that's design issue :)

                  Comment

                  • Atli
                    Recognized Expert Expert
                    • Nov 2006
                    • 5062

                    #10
                    I was looking into pretty much this exact problem a while ago.

                    The only two solutions I came up with were using frames, as Steven suggested, and creating a 100% client-side site.
                    Personally I would rather create a client-side web then use frames, but that's just me.

                    Another option I disregarded from the start was to open the music player in another window, but that is an option if you don't mind using such a crude method.
                    Just make sure to take pop-up blockers into account if you do.

                    And I have to agree with Jeff to. I hate it when websites start playing audio without any warning.

                    Comment

                    • Muddasir
                      New Member
                      • Jun 2007
                      • 49

                      #11
                      Originally posted by Atli
                      I was looking into pretty much this exact problem a while ago.

                      The only two solutions I came up with were using frames, as Steven suggested, and creating a 100% client-side site.
                      Personally I would rather create a client-side web then use frames, but that's just me.

                      Another option I disregarded from the start was to open the music player in another window, but that is an option if you don't mind using such a crude method.
                      Just make sure to take pop-up blockers into account if you do.

                      And I have to agree with Jeff to. I hate it when websites start playing audio without any warning.

                      Thank you for your reply.

                      Actually the site I am developing does not play audio without warning and stuff. Here is how it works on my website..

                      -> Registered user searches for music on the site..
                      -> User can add music track of their choices to the play list of music player.
                      -> If user click on PLAY then music will start playing in the player.

                      Note: Music player is on the right panel of the website and it appears on every page.

                      Now currently if user click on any other page. then music player stops playing, user has to replay it.

                      I will try using iframe. let see what happens.


                      PS: It was not my idea... its the client who wants this to be implemented :S :(


                      Thanks everyone :)


                      Regards
                      - Muddasir

                      Comment

                      • Markus
                        Recognized Expert Expert
                        • Jun 2007
                        • 6092

                        #12
                        Originally posted by Atli
                        I was looking into pretty much this exact problem a while ago.

                        The only two solutions I came up with were using frames, as Steven suggested, and creating a 100% client-side site.
                        Personally I would rather create a client-side web then use frames, but that's just me.

                        Another option I disregarded from the start was to open the music player in another window, but that is an option if you don't mind using such a crude method.
                        Just make sure to take pop-up blockers into account if you do.

                        And I have to agree with Jeff to. I hate it when websites start playing audio without any warning.
                        If you were using flash, you could note the time that the page was closed (might have to do this in javascript) and set a cookie with that value. Then, when the page is re-opened, start the sound from that offset. As far as I know, you cannot set the start time offset on an <embed> object.

                        Anyway - moving this to HTML.

                        Mark.

                        Comment

                        • nomad
                          Recognized Expert Contributor
                          • Mar 2007
                          • 664

                          #13
                          Frameset site

                          Originally posted by zorgi
                          I was of the same opinion until recent. A friend of mine (photographer) showed me a site (gallery) with music that was working so well with the art work presented. Like sometime they do for real world galleries. After seeing that example I am not so quick on dismissing music on the site. But hey that's design issue :)
                          I need to find a solution to this ideal.
                          I'm making a wedding video website and I have music in the background for all the pages. There is one page where I want the music to stop so the user can view some videos. If the used decide they are done with that page they can click on the menus and I want the audio to restart on any of the pages. There are a total of 5 pages plus the video page.

                          I'm using two frames a main frame where the pages load and a menu page were the audio is located. I'm using a wave file and I placed the audio using Plugin.
                          is there a way I can stop the audio and restart it?

                          Any help in this area would be great

                          Comment

                          • Markus
                            Recognized Expert Expert
                            • Jun 2007
                            • 6092

                            #14
                            Originally posted by nomad
                            I need to find a solution to this ideal.
                            I'm making a wedding video website and I have music in the background for all the pages. There is one page where I want the music to stop so the user can view some videos. If the used decide they are done with that page they can click on the menus and I want the audio to restart on any of the pages. There are a total of 5 pages plus the video page.

                            I'm using two frames a main frame where the pages load and a menu page were the audio is located. I'm using a wave file and I placed the audio using Plugin.
                            is there a way I can stop the audio and restart it?

                            Any help in this area would be great
                            Flash or HTML (or silverlight maybe).

                            Comment

                            • nomad
                              Recognized Expert Contributor
                              • Mar 2007
                              • 664

                              #15
                              Flash take way to long to upload 6 pages of content, esp with the home page where I have a movie clip.
                              I'm using HTML now.
                              Will look into silverlight, I never used it.

                              I was hoping for s java scrpit .

                              nomad

                              Comment

                              Working...