Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: music help  (Read 17193 times)

0 Members and 2 Guests are viewing this topic.

nymph4

    Topic Starter


    Specialist

    music help
    « on: April 25, 2010, 08:31:26 PM »
    If I put a spound file on a web page that is
    386 kB in size is this to big for a background sound to play??
    It is an MP3

    Geek-9pm


      Mastermind
    • Geek After Dark
    • Thanked: 1026
      • Gekk9pm bnlog
    • Certifications: List
    • Computer: Specs
    • Experience: Expert
    • OS: Windows 10
    Re: music help
    « Reply #1 on: April 25, 2010, 08:48:16 PM »
    Yes. Much to big for a background sound.
    Make a very short sample. The add a link so that the user can click to hear the whole thing. If she wants to.

    BC_Programmer


      Mastermind
    • Typing is no substitute for thinking.
    • Thanked: 1140
      • Yes
      • Yes
      • BC-Programming.com
    • Certifications: List
    • Computer: Specs
    • Experience: Beginner
    • OS: Windows 11
    Re: music help
    « Reply #2 on: April 26, 2010, 02:19:39 AM »
    a better solution is to not have background sound at all.

    Besides, I don't think MP3 can even be used as a background sound.
    I was trying to dereference Null Pointers before it was cool.

    nymph4

      Topic Starter


      Specialist

      Re: music help
      « Reply #3 on: April 26, 2010, 11:29:42 AM »
      What file format can be used  WAV   and what??

      nymph4

        Topic Starter


        Specialist

        Re: music help
        « Reply #4 on: April 26, 2010, 09:25:00 PM »
        A lot of people have  Flash or Shockwave in there web browsers.

        Can I code an  MP3  file to auto play in a web page  for that player????????????

        Almost everything you need Flash or Sockwave for on the net  so if I can code my sound file to  use them to play it it will be able to.

        My MP3 file for background sound will be 5 SEC.

        Quantos



          Guru
        • Veni, Vidi, Vici
        • Thanked: 170
          • Yes
          • Yes
        • Computer: Specs
        • Experience: Guru
        • OS: Linux variant
        Re: music help
        « Reply #5 on: April 27, 2010, 12:30:04 AM »
        a better solution is to not have background sound at all.

        Besides, I don't think MP3 can even be used as a background sound.
        It can, I did it once on an old site I had.  If I remember correctly I had to embed a player in the page though.  It took a crap load of tweaking to get it to load anywhere near quickly, and finally had to go with a really low bitrate recording.  It was so terrible that I yanked it pretty quickly.
        Evil is an exact science.

        soybean



          Genius
        • The first soybean ever to learn the computer.
        • Thanked: 469
        • Computer: Specs
        • Experience: Experienced
        • OS: Windows 10
        Re: music help
        « Reply #6 on: April 27, 2010, 06:22:32 AM »
        What file format can be used  WAV   and what??
        MID is the format normally used for sound embedded in a web page.  Here's a good reference: http://www.webreference.com/js/column20/embed.html and it has sound embedded in it.

        Note: Firefox and Chrome would not play the background sound for me; they displayed a popup saying "Your browser can not play sound".  Only IE worked and it prompted me to allow the Windows Media Player plug-on to run. 

        BC_Programmer


          Mastermind
        • Typing is no substitute for thinking.
        • Thanked: 1140
          • Yes
          • Yes
          • BC-Programming.com
        • Certifications: List
        • Computer: Specs
        • Experience: Beginner
        • OS: Windows 11
        Re: music help
        « Reply #7 on: April 27, 2010, 06:41:02 AM »
        the <embed> element has not, nor has it ever been, a standard HTML element; as evidenced by it's non-support  in msot every browser aside IE.

        http://www.w3schools.com/media/media_browsersounds.asp

        I was trying to dereference Null Pointers before it was cool.

        soybean



          Genius
        • The first soybean ever to learn the computer.
        • Thanked: 469
        • Computer: Specs
        • Experience: Experienced
        • OS: Windows 10
        Re: music help
        « Reply #8 on: April 27, 2010, 06:58:23 AM »
        the <embed> element has not, nor has it ever been, a standard HTML element;

        It's covered in many books on HTML and online HTML references.  So, I have to say it is a standard HTML element.  It's just not supported by some browsers, which is a compelling reason not to use it.

        BC_Programmer


          Mastermind
        • Typing is no substitute for thinking.
        • Thanked: 1140
          • Yes
          • Yes
          • BC-Programming.com
        • Certifications: List
        • Computer: Specs
        • Experience: Beginner
        • OS: Windows 11
        Re: music help
        « Reply #9 on: April 27, 2010, 07:15:13 AM »
        It's covered in many books on HTML and online HTML references.  So, I have to say it is a standard HTML element. 

        I'm afraid that doesn't add it to the standard.

        HTML4 tags:

        http://www.w3.org/TR/REC-html40/index/elements.html

        the embed tag was first used by Netscape Navigator. IE added it for compatibility with it.

        Note that with IE8 it barely works at all- requires clicking through several prompts, and refuses to play until the user clicks play in the player.

        EMBED is <only> supported by IE and browsers based on it. it is not a standard.

        Also, that page is outdated anyway:

        Quote
        Created: May 31, 1998
        Revised: May 31, 1998


        Would you be able to use a Windows book from 1998 to work with windows 7?
        I was trying to dereference Null Pointers before it was cool.

        soybean



          Genius
        • The first soybean ever to learn the computer.
        • Thanked: 469
        • Computer: Specs
        • Experience: Experienced
        • OS: Windows 10
        Re: music help
        « Reply #10 on: April 27, 2010, 07:42:27 AM »
        Would you be able to use a Windows book from 1998 to work with windows 7?
        Of course not.  I did not notice the date.

        Quote
        I'm afraid that doesn't add it to the standard.
        Then, what does?  The book I'm looking at was used in a web design class at a local college.  It's copyright date is 2007, which was a revision of previous editions.  So, it's not the most current but not really very old, either; of course, all browsers have gone through multiple version updates since then. The book even says <embed> "currently remains well supported by all the popular browsers."  However, the book also says, "Today's standard is the <object> tag with the data attribute, and we recommend that you use it in lieu of <embed>."

        Quantos



          Guru
        • Veni, Vidi, Vici
        • Thanked: 170
          • Yes
          • Yes
        • Computer: Specs
        • Experience: Guru
        • OS: Linux variant
        Re: music help
        « Reply #11 on: April 27, 2010, 07:57:20 AM »
        Would you be able to use a Windows book from 1998 to work with windows 7?
        You mean for something useful right :)
        Evil is an exact science.

        BC_Programmer


          Mastermind
        • Typing is no substitute for thinking.
        • Thanked: 1140
          • Yes
          • Yes
          • BC-Programming.com
        • Certifications: List
        • Computer: Specs
        • Experience: Beginner
        • OS: Windows 11
        Re: music help
        « Reply #12 on: April 27, 2010, 08:32:50 AM »
        The confusion here is that you're thinking of "De facto" standards, whereas I'm referring to De Jeure Standards.
        I was trying to dereference Null Pointers before it was cool.

        kpac

        • Web moderator
        • Moderator


        • Hacker

        • kpac®
        • Thanked: 184
          • Yes
          • Yes
          • Yes
        • Certifications: List
        • Computer: Specs
        • Experience: Expert
        • OS: Windows 7
        Re: music help
        « Reply #13 on: April 27, 2010, 10:57:56 AM »
        Quote
        Then, what does?
        The W3C decides, with the help of many HTML groups on the Web.

        nymph4

          Topic Starter


          Specialist

          Re: music help
          « Reply #14 on: April 27, 2010, 12:42:51 PM »
          This is what I ment.
          A lot of people have  Media Player   Real Player  Winamp   and many many more.

          And wen you have a Midi File on a web page as background sound  there player plays it.

          So why would it not work if I encode MP3 file?????????

          kpac

          • Web moderator
          • Moderator


          • Hacker

          • kpac®
          • Thanked: 184
            • Yes
            • Yes
            • Yes
          • Certifications: List
          • Computer: Specs
          • Experience: Expert
          • OS: Windows 7
          Re: music help
          « Reply #15 on: April 27, 2010, 12:48:54 PM »
          Why do you want to use a background sound anyway?

          Geek-9pm


            Mastermind
          • Geek After Dark
          • Thanked: 1026
            • Gekk9pm bnlog
          • Certifications: List
          • Computer: Specs
          • Experience: Expert
          • OS: Windows 10
          Re: music help
          « Reply #16 on: April 27, 2010, 01:14:57 PM »
          Here is a site that explains the possibilities.
          http://allwebco-templates.com/support/S_script_music.htm

          What it says is basically what he was already told. For some audio formats you need a plug in. For the formats already supported by your browser, not plug-in is needed.

          Or, you can put an object into your page that loads a flash player on demand. The should be used as a 'click here' thing to let the visitor decide if they want your background music.

          When I used to put sound on eBay, the only thing I could use was the AU format that is supported by Java. I would also have tout the proper JS things into my web page with the absolute utl for all the objects. The ebay page could only have HTML, the sound objects had to be on my own web space. At that time there was no easy way to put MP3 sound into a eBay page. It had to conform to the standards of that time. It would work because most users would have the Java VM on the PC and the browser would use the Java code to produce sound. So no plug-ins were needed.  8)



          BC_Programmer


            Mastermind
          • Typing is no substitute for thinking.
          • Thanked: 1140
            • Yes
            • Yes
            • BC-Programming.com
          • Certifications: List
          • Computer: Specs
          • Experience: Beginner
          • OS: Windows 11
          Re: music help
          « Reply #17 on: April 27, 2010, 02:29:20 PM »
          So no plug-ins were needed.  8)

          The java VM was and is a plugin/extension for each browser.
          I was trying to dereference Null Pointers before it was cool.

          Geek-9pm


            Mastermind
          • Geek After Dark
          • Thanked: 1026
            • Gekk9pm bnlog
          • Certifications: List
          • Computer: Specs
          • Experience: Expert
          • OS: Windows 10
          Re: music help
          « Reply #18 on: April 27, 2010, 02:39:50 PM »
          The java VM was and is a plugin/extension for each browser.
          Correct. And the user seldom knows it. But for Flash you need a plug-in unless the user has already done it. Still, some special decoders require a spacial flavor of Flash, So it has to be downloaded 'on the fly.'  (Pun not intended.)

          I used to use the wimpy MP3 player. It is really a custom Flash thing in Java. It would load itself so fast the the user was seldom aware that it was a custom plug-in from Adobe done in Java.

          http://www.wimpyplayer.com/

          Quantos



            Guru
          • Veni, Vidi, Vici
          • Thanked: 170
            • Yes
            • Yes
          • Computer: Specs
          • Experience: Guru
          • OS: Linux variant
          Re: music help
          « Reply #19 on: April 28, 2010, 01:37:37 AM »
          Well, a plug in and an embedded object are two completely different monsters.

          <edit>  One runs client side while the other runs server side, for example.  </edit>
          Evil is an exact science.

          BC_Programmer


            Mastermind
          • Typing is no substitute for thinking.
          • Thanked: 1140
            • Yes
            • Yes
            • BC-Programming.com
          • Certifications: List
          • Computer: Specs
          • Experience: Beginner
          • OS: Windows 11
          Re: music help
          « Reply #20 on: April 28, 2010, 04:07:53 AM »
          Well, a plug in and an embedded object are two completely different monsters.

          <edit>  One runs client side while the other runs server side, for example.  </edit>

          They both run client-side- an embedded object basically embeds a music file, a picture, video, etc, into a page, and let's the browser figure out how to handle it. but whatever it decides, will be on the client side- for example, with embed, it doesn't work in either FF or Opera without a media player plugin; Internet Explorer uses Windows Media player by default. an embedded object could be said to be data that may (or may not) require a specific type of plugin to use. for example, you could embed an XML document, but it won't do a lot of good unless the browser knows how to deal with it.
          I was trying to dereference Null Pointers before it was cool.

          Geek-9pm


            Mastermind
          • Geek After Dark
          • Thanked: 1026
            • Gekk9pm bnlog
          • Certifications: List
          • Computer: Specs
          • Experience: Expert
          • OS: Windows 10
          Re: music help
          « Reply #21 on: April 28, 2010, 02:09:32 PM »
          Server side FLASH.  8)
          Quote
          Flash Media Development Server: free
          Easily develop and test your Flash Media Server applications with this free edition. It supports all of the features of Flash Media Interactive Server 3.5 but is limited to ten simultaneous streams.
          FLASH MEDIA SERVER 3.5 FAQ   

          BC_Programmer


            Mastermind
          • Typing is no substitute for thinking.
          • Thanked: 1140
            • Yes
            • Yes
            • BC-Programming.com
          • Certifications: List
          • Computer: Specs
          • Experience: Beginner
          • OS: Windows 11
          Re: music help
          « Reply #22 on: April 28, 2010, 02:12:53 PM »
          Flash Media server- not server side flash. At least, I don't think so.

          Adobe already has a server side product- ColdFusion. Well... Macromedia did, so now Adobe does. Wonder if they managed to screw it up like they did the other macromedia products.
          I was trying to dereference Null Pointers before it was cool.

          Quantos



            Guru
          • Veni, Vidi, Vici
          • Thanked: 170
            • Yes
            • Yes
          • Computer: Specs
          • Experience: Guru
          • OS: Linux variant
          Re: music help
          « Reply #23 on: April 29, 2010, 06:31:27 AM »
          They both run client-side- an embedded object basically embeds a music file, a picture, video, etc, into a page, and let's the browser figure out how to handle it. but whatever it decides, will be on the client side- for example, with embed, it doesn't work in either FF or Opera without a media player plugin; Internet Explorer uses Windows Media player by default. an embedded object could be said to be data that may (or may not) require a specific type of plugin to use. for example, you could embed an XML document, but it won't do a lot of good unless the browser knows how to deal with it.
          That's interesting to note, it makes sense now that I think about it.  I had just assumed that the embedded object would run from server side.
          Evil is an exact science.

          nymph4

            Topic Starter


            Specialist

            Re: music help
            « Reply #24 on: May 06, 2010, 10:37:32 AM »
            I found this on the web but I need some help with it?

            <object classid="classID"
              width="n"
              height="n"
            >
              <param name="URL" value="url"/>
              <param name="autoStart" value="true|false"/>
              <param name="uiMode" value="none|mini|full"/>
            </object>

            I have my web pages and the audio file   beach.wav    all in the same directory.
            Now what do I neet do do to this code so it will work with internet explorer  and firefox???

            Or can it work for both for playing a  wav file on my page???

            kpac

            • Web moderator
            • Moderator


            • Hacker

            • kpac®
            • Thanked: 184
              • Yes
              • Yes
              • Yes
            • Certifications: List
            • Computer: Specs
            • Experience: Expert
            • OS: Windows 7
            Re: music help
            « Reply #25 on: May 06, 2010, 11:42:10 AM »
            If you had read the tutorial I gave you, you would know. Have you something against reading tutorials?

            http://w3schools.com/media/media_browsersounds.asp

            nymph4

              Topic Starter


              Specialist

              Re: music help
              « Reply #26 on: May 06, 2010, 02:54:52 PM »
              Ok the code I got from your web site says

              <embed
              src="beatles.mid"
              width="50%"
              height="50%">
              </embed>

              And it goes between the body tag is all of this right??????????

              BC_Programmer


                Mastermind
              • Typing is no substitute for thinking.
              • Thanked: 1140
                • Yes
                • Yes
                • BC-Programming.com
              • Certifications: List
              • Computer: Specs
              • Experience: Beginner
              • OS: Windows 11
              Re: music help
              « Reply #27 on: May 06, 2010, 02:59:45 PM »
              Ok the code I got from your web site says

              <embed
              src="beatles.mid"
              width="50%"
              height="50%">
              </embed>

              And it goes between the body tag is all of this right??????????

              Did you try it?

              Did it work?
              I was trying to dereference Null Pointers before it was cool.

              nymph4

                Topic Starter


                Specialist

                Re: music help
                « Reply #28 on: May 06, 2010, 03:01:29 PM »
                Ok I found it

                <object
                height="50%"
                width="50%"
                classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95">
                <param name="AutoStart" value="1" />
                <param name="FileName" value="liar.wav" />
                </object>

                And it goes between the body tag.

                What browsers is this good for?

                kpac

                • Web moderator
                • Moderator


                • Hacker

                • kpac®
                • Thanked: 184
                  • Yes
                  • Yes
                  • Yes
                • Certifications: List
                • Computer: Specs
                • Experience: Expert
                • OS: Windows 7
                Re: music help
                « Reply #29 on: May 07, 2010, 08:15:09 AM »
                To make it work in all browsers, place the <embed> tag between the <object> tag.

                nymph4

                  Topic Starter


                  Specialist

                  Re: music help
                  « Reply #30 on: May 07, 2010, 11:02:26 AM »
                  You meen so it looks like this

                  <object>
                  <embed>
                  height="50%"
                  width="50%"
                  classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95">
                  <param name="AutoStart" value="1" />
                  <param name="FileName" value="liar.wav" />
                  </embed>
                  </object>

                  kpac

                  • Web moderator
                  • Moderator


                  • Hacker

                  • kpac®
                  • Thanked: 184
                    • Yes
                    • Yes
                    • Yes
                  • Certifications: List
                  • Computer: Specs
                  • Experience: Expert
                  • OS: Windows 7
                  Re: music help
                  « Reply #31 on: May 07, 2010, 11:51:59 AM »
                  No. You don't seem to understand even the basics of HTML.

                  Code: [Select]
                  <object height="50%" width="50%" classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95">
                    <param name="AutoStart" value="1" />
                    <param name="FileName" value="liar.wav" />
                    <embed src="liar.wav" width="50%" height="50%"></embed>
                  </object>

                  nymph4

                    Topic Starter


                    Specialist

                    Re: music help
                    « Reply #32 on: May 07, 2010, 09:55:21 PM »
                    What is this  string?

                     classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95">

                    I did read about it but did not get it?

                    Is this give the player a  clss  or telling the browser what player to use??

                    kpac

                    • Web moderator
                    • Moderator


                    • Hacker

                    • kpac®
                    • Thanked: 184
                      • Yes
                      • Yes
                      • Yes
                    • Certifications: List
                    • Computer: Specs
                    • Experience: Expert
                    • OS: Windows 7
                    Re: music help
                    « Reply #33 on: May 08, 2010, 03:25:43 AM »
                    Quote
                    The object Element

                    The width and height attributes of the object element should match the size of the movie in pixels.

                    The classid attribute uniquely identifies the player software to use. It must be set to "clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B". This unique code identifies an ActiveX control that must be installed on the users PC before the movie can be played. If the user does not have the ActiveX control installed, the browser can automatically download and install it.

                    The codebase attribute specifies the base path used to resolve relative URIs specified by the classid, data, and archive attributes. When absent, its default value is the base URI of the current document. Note: Internet Explorer uses this attribute to specify a location from where the player can be downloaded. It must be set to "http://www.apple.com/qtactivex/qtplugin.cab". This location will always contain the latest version of the QuickTime player.

                    The src parameter should point to the movie file.

                    The autoplay parameter should have the value "true" if you want the movie to play automatically.

                    The controller parameter should have the value "false" if you don't want the control buttons to show.

                    The embed Element

                    The embed element is supported by old browsers, like Netscape 4 and 5.

                    The width and height attributes of the embed element should match the size of the movie in pixels.

                    The autoplay and controller attributes of the embed element should be set to the same values as for the parameters in the object element.

                    The pluginspage attribute defines the players download path. It must be set to "http://www.apple.com/quicktime/download/".

                    http://w3schools.com/media/media_quicktime.asp

                    I don't know why I bother.

                    Geek-9pm


                      Mastermind
                    • Geek After Dark
                    • Thanked: 1026
                      • Gekk9pm bnlog
                    • Certifications: List
                    • Computer: Specs
                    • Experience: Expert
                    • OS: Windows 10
                    Re: music help
                    « Reply #34 on: May 08, 2010, 08:40:35 AM »
                    Posted by: kpac
                    Quote
                    http://w3schools.com/media/media_quicktime.asp
                    I don't know why I bother.
                    Because it mat help somebody else. ;)

                    BC_Programmer


                      Mastermind
                    • Typing is no substitute for thinking.
                    • Thanked: 1140
                      • Yes
                      • Yes
                      • BC-Programming.com
                    • Certifications: List
                    • Computer: Specs
                    • Experience: Beginner
                    • OS: Windows 11
                    Re: music help
                    « Reply #35 on: May 08, 2010, 08:52:18 AM »
                    Because it mat help somebody else. ;)

                    That makes sense the first time, but when the same concepts are explained over and over again there comes a point of diminishing returns.
                    I was trying to dereference Null Pointers before it was cool.

                    nymph4

                      Topic Starter


                      Specialist

                      Re: music help
                      « Reply #36 on: May 10, 2010, 12:50:00 PM »
                      I have been doing a lot of looking on the net and the one thing that seems good is adding sound to web sites with Flash  and they can play MP3s.

                      Does anyone know of a Good Free Flash Program??

                      It does not have to be great  just something to let me make Flash??

                      And I am having problems getting a web site that tells how to ad Flash sound to your sie.

                      I see all about it but this is it??????

                      kpac

                      • Web moderator
                      • Moderator


                      • Hacker

                      • kpac®
                      • Thanked: 184
                        • Yes
                        • Yes
                        • Yes
                      • Certifications: List
                      • Computer: Specs
                      • Experience: Expert
                      • OS: Windows 7
                      Re: music help
                      « Reply #37 on: May 10, 2010, 02:44:18 PM »
                      http://flash-mp3-player.net/

                      Quote
                      And I am having problems getting a web site that tells how to ad Flash sound to your sie.
                      You seem to have problems finding anything on the internet. http://www.w3schools.com/flash/