Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Jan 2011
    Location
    Reno, Nv.
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    music and Foxfire Mozilla

    I have background music on one of the pages on my site. The background music only works in Internet Explorer. Does anyone know why it won't work in Foxfire Mozilla?

  • #2
    Regular Coder
    Join Date
    Dec 2010
    Location
    Kent, UK
    Posts
    573
    Thanks
    23
    Thanked 10 Times in 10 Posts
    i too hav noticed this, firefox seems to be the only one i know that doesnt play music however google chrome and IE do? any help would be great also

  • #3
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    welcome Diane to CF.

    please post your code so someone can try to help. the coding requirements of IE are different from FF as far as I know but, there is a sticky on the multimedia forum, which may have your answer. Its about 1oom pages long though.

    bazz
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #4
    Regular Coder
    Join Date
    Dec 2010
    Location
    Kent, UK
    Posts
    573
    Thanks
    23
    Thanked 10 Times in 10 Posts
    Code:
    	<script type='text/javascript'>
    		
    		var filename='http://www.uploadmusic.org/MUSIC/26731292648441.mp3';
    		
    		if(navigator.appName == 'Microsoft Internet Explorer'){
    			
    			document.writeln ('<bgsound src="' + filename + '" allowscriptaccess="never">');
    			
    		} else if(navigator.appName == 'Netscape'){
    			
    			document.writeln ('<embed src="' + filename + '" type="audio/mpeg" autostart=true width=0 height=0 allowscriptaccess="never">');
    			
    		}
    		</script>
    		
    		<noscript>
    		<bgsound src="http://www.uploadmusic.org/MUSIC/26731292648441.mp3" allowscriptaccess="never">
    		</noscript>
    #

    this is what im using, however i havent given the php coding for it as i know the php is echo'ing the right code nto it as it is coming up here in the source of the page, diane does your look anything like this?

  • #5
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    Foxfire Mozilla? Is it backwards day?

    You are using deprecated code. bgsound and embed are both outdated; we favour object or audio (once it's sorted out) now.

    However, I will not provide you with a way of doing this because you should not inflict people with background music. Users hate this. There is no way to turn it off, and they did not ask for it in the first place. Leave the idea alone. (:

  • #6
    Regular Coder
    Join Date
    Dec 2010
    Location
    Kent, UK
    Posts
    573
    Thanks
    23
    Thanked 10 Times in 10 Posts
    well i have a tick box that allowes people to listen to it or not as its an include of a users choise of music(they choose thier own from a different upload site) that they can then type in and use but others have the option to hear peoples music or not

  • #7
    Regular Coder
    Join Date
    Aug 2005
    Location
    MS
    Posts
    831
    Thanks
    10
    Thanked 79 Times in 77 Posts
    I have used Firefox since it came out and never have had any problems with it or any other browser playing any media file for me. You MUST you the correct media player code for the browsers and not get really sloppy by trying to use the old Netscape embed tag. Use the object tags and the latest player coding.

    For flash media, the flash plug-in is browser SPECIFIC and you may not have it installed for FF. Mozilla allows you to check all plug-ins as to whether they are updated or not from Tools>Add-ons>Plugins tab. You should also have JavaScript enabled as many sites (YouTube for one) will only deleliver video if JS is turned on.

    Check the Flash version you currently have installed: http://www.adobe.com/software/flash/about/
    Update: http://get.adobe.com/flashplayer/

    The Flash player is BROWSER SPECIFIC so be sure you install the correct one.

    Install Adobe Flash Player: http://get.adobe.com/flashplayer/

    Troubleshoot Adobe Flash Player Installation for Windows: http://kb2.adobe.com/cps/191/tn_19166.html

    Adobe Flash Install by O/S: http://get.adobe.com/flashplayer/otherversions/

    Adobe's Flash for IE: http://www.filehippo.com/download_flashplayer_ie/

    Adobe's Flash for Mozilla: https://addons.mozilla.org/en-US/firefox/browse/type:7

    Adobe Flash Player (Platform Versions): http://www.adobe.com/software/flash/about/

    Web Players (free downloads of all current Adobe Web players for all platforms): http://www.adobe.com/shockwave/download/alternates/

    Although some of these sites are still writing the worse media code, you may be able to get an idea of the structure:

    http://www.freevideocoding.com/
    http://cit.ucsf.edu/embedmedia/step1.php
    http://www.trap17.com/index.php/Embe...or_t33699.html
    http://embedthevideo.com/

    For specific players, like Quicktime, see their site for code to use.
    ☠ ☠RON☠ ☠


  •  

    Posting Permissions

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