Audio tag not working in safari 5.1.7 browser on windows 7 machine

Hi,
I have a query. I need to play mp3 sound in the safari 5.1.7 browser on windows 7 machine using javascript code.
I have tried all the three tags(<audio> <embed> and <object>) for playing mp3 audio in the javascript function. But I am not able to play sound. I also doubt whether there is a change needs to be done in safari browser settings. Can anyone please guide me on playing mp3 sound.
function playSound() {
    soundURL = "LoginSound.mp3";
    <audio autoplay=\"true\" ><source src=\""+soundURL+"\" type=\"audio/mpeg\"></audio>
    <embed id=emb1 src='"+soundURL+"' hidden=true autostart=true loop=false>
    <object data='"+soundURL+"' type='audio' src='"+soundURL+"' autoplay=true autostart=true>

Hi,
I have a query. I need to play mp3 sound in the safari 5.1.7 browser on windows 7 machine using javascript code.
I have tried all the three tags(<audio> <embed> and <object>) for playing mp3 audio in the javascript function. But I am not able to play sound. I also doubt whether there is a change needs to be done in safari browser settings. Can anyone please guide me on playing mp3 sound.
function playSound() {
    soundURL = "LoginSound.mp3";
    <audio autoplay=\"true\" ><source src=\""+soundURL+"\" type=\"audio/mpeg\"></audio>
    <embed id=emb1 src='"+soundURL+"' hidden=true autostart=true loop=false>
    <object data='"+soundURL+"' type='audio' src='"+soundURL+"' autoplay=true autostart=true>

Similar Messages

  • Html 5 audio tag not working

    Hi, I am trying to create a web page that links to an audio file. I have added the <audio> tag which works in my Safari browser on my Mac but does not work on the i-phone. If I save the page by bookmarking and adding to my Home Screen I have more success. This is not a desirable option.
    Does anyone have any ideas?
    Glenn

    well for anyone else.
    my html was fine. in fact the server nginx was returning the wrong content-type and so i had to add the MIME types into my nginx config file.

  • HTML 5 audio tag not working in FF

    I am developing a website in asp.net and html 5 and trying to add some audio to the site.
    My site is:
    http://www.kevinroseworld.com/music.aspx/
    It is, currently, a very simple set up, just the one song. It works fine in Chrome and Safari, IE does not support the Audio tag and the message appears where it is supposed to, however, Firefox does not display the error message or play the audio file.
    I started using FF 3.6.10 and have now upgraded to FF 4 Beta 6 and neither version works.
    Any advice as to how to fix this?
    I also had a look on other forums and found others with the same problem: http://www.manifestmusicproductions.com/soundsNonflash.php for example, works in Chrome/Safari but not in FF.

    well for anyone else.
    my html was fine. in fact the server nginx was returning the wrong content-type and so i had to add the MIME types into my nginx config file.

  • Audio playback not working in Safari

    I just upgraded from a PB 15" to MacBook Pro and noticed that on several websites (in Safari) the audio clips will not play although the progress bar shows them playing -- I have to option click them to download them before they are audiable. This occurs in QT as well as Windows Media type files so far .... and can be experienced on myspace.com clips as well -- I don't which file format those are in ....
    I am pretty experienced with Macs by now and have no insight into the fix and/or probable cause.
    MacBook Pro 1.83 ghz   Mac OS X (10.4.5)  

    I'm having the same problem. Opening Safari with Rosetta does not help. The MySpace player is still not working. It worked perfectly on the PB. I also can no longer view video clips using Windows Media Player on my MBP. I thought the Rosetta thing was supposed to allow you to do **** like you could on the PB. I'm getting frustrated and no one so far has been able to help me.
    Isaac

  • IE-11 HTML5 Audio tags not working

    I have add mime type in web config as below
    <system.webServer>
        <staticContent>
            <mimeMap fileExtension=".mp3" mimeType="audio/mpeg" />
            <mimeMap fileExtension=".ogg" mimeType="audio/ogg" />
            <mimeMap fileExtension=".oga" mimeType="audio/ogg" />
        </staticContent>
    </system.webServer>
    All others browser is working well, but except IE-11
    The DOM display error INVALID SOURCE
    PLEASE ADVISE.
    Best Regards
    Dev - Nick

    I found 2 formats,supported by IE11: .m4a and .3ga
    <audio src="http://az3749.narod.ru/anna/soundE.3ga" type="audio/m4a" controls/>
    <audio src="http://az3749.narod.ru/anna/soundE.m4a" type="audio/m4a" controls/>
    also it is possible to rename .3ga to .m4a - it worked.

  • Outlook Web Access not working in Safari or any other browse

    When I try to access OWA from ANY browser, Safari, IE, or Firefox, I get the same error.
    "You could not be logged on to Outlook Web Access. Make sure your User Name and Password are correct, and then try again."
    When I log in from my PC, I don't have this problem.
    The IT guys at work claim that they won't support Mac problems. Typical....
    Any thoughts?

    Don't know if this will help, but are you providing the correct credentials via Safari? When you use IE, you are presented with a dialog box that asks for userid, password, and domain name. Safari and other browsers will only ask for the userid and password. Consequently, when using these browsers, you need to preface your userid with the domain name followed by a backslash. For example:
    mydomain\jsmith
    While Safari works with OWA, it has an annoying habit of requesting the username and password frequently as you navigate through OWA. I also find that I occasionally have to to click twice on a button to get Safari to activate a command such as reading a message or the Send button. I now use Camino for OWA access. It's cleaner and faster.

  • Help needed - Captivate 7 Audio not working in Safari/Chrome in html5

    I think I am going slightly mad. For the life of me I can not get the audio to work in either Chrome or Safari (both versions are up to date) on an ipad and android tablet.
    I have created a 1 slide project which just consists of a blank slide plus an audio mp3 file I have imported to the slide.  I have turned off all the button click sounds and not scaled the html.
    I then publish to html5, uplaod it to my LMS and try and view it.  Works fine in IE on a desktop. But when I try and view it in Chrome and Safari there's no audio. In Chrome it seems to default to mute, so I unmute it but still nothing,  In Safari the mute button is not even there, even through it is enabled in the skin.
    Anyone have any ideas as it's driving me mad?  Unfortunate thing is I downloaded Articulate storyline and after 10 mins I had uploaded a html 5 zip file and it working great on the ipad, with audio.

    Hi
    Sorry to hear that you are having trouble with audio in Captivate's HTML5 output.
    What LMS are you using? There are certain LMS that are known to have problem serving HTML5 content. Also, the content server inside the LMS can choose to send different responses based on the client being a desktop device or a mobile device.
    What is the IOS version in the iPad? IOS6 is preferrable.
    Can you please try the following?
    1. Instead of hosting the output in an LMS, try hosting the content in a local web server running on your machine. Mongoose is a quick and free option to try out (https://mongoose.googlecode.com/files/mongoose-tiny-4.1.exe) and then try accessing the same from iPad
    2. If that works, then we can start suspecting the LMS that you are using. If it still does not work, you can connect the iPad to a Mac machine's USB port. Launch Safari on the Mac machine. Make sure that the option to "Show Developer Menu" is turned on in Safari's preferences. From the develop menu, select the menu specific to the iPad device and webpage. You may have to open and close the develop menu in case your iPad is not listed in the menu. Once you select the iPad+page menu, a web-inspector window is opened. Open the console messages if not already open. Refresh the webpage in the iPad. Look at the console output messages in the web-inspector. Any errors or warnings encountered will be printed there. For example, network error messages might hint that the http request for the mp3 file was rejected by the server for some reason.
    3. If there are no messages in the console, audio does not play when published output is hosted in local webserver, then please share the published output. We can investigate why it does not work.
    Cheers
    Siva

  • Flash not working in Safari 5

    Flash has been buggy for me in Safari 5, ever since I updated the Flash player last week to "10.1 r53". Either Flash files don't play at all, or just the audio plays without video.
    Per the instructions on these boards, I have:
    1. reset Safari
    2. uninstalled flash player
    3. installed the flash player
    4. repaired permissions
    5. restarted
    The issue is still there. Firefox plays Flash files, YouTube, etc. just fine. Safari does not.
    I'm running SL 10.6.4, latest Software Updates.
    Any suggestions?
    Thanks!

    I created a new account. Flash works in the new account. That's cool, but I really don't want to re-locate all my prefs, etc., just for a buggy plugin.
    So, I next...
    1. grabbed the Safari plist from the new account
    2. logged out of the new account
    3. logged into the old account (where Flash does not work)
    4. moved the old account's com.apple.safari plist file out of the Preferences folder
    5. moved the clean Safari plist file (from the new account) into the Preferences folder
    6. reset and restarted Safari
    7. Flash worked...for about two minutes. I tested on YouTube, Vimeo and Google Analytics. Back to Flash not working in Safari.
    I then tried repeating the earlier steps.
    1. reset Safari
    2. uninstall flash player
    3. install flash player
    4. repaired permissions
    5. restarted
    Still doesn't work.
    Just one other thing to note: whenever I pull up a web page with Flash, I get a "file not found" error in Safari's activity monitor (link is below)...could this be an error with Adobe's website rather than a Safari-permission thing?
    http://fpdownload2.macromedia.com/get/flashplayer/update/current/install/version .xml10.1.53.64~os=Mac&osVer=10.6.4&playerType=pl&cpuWordLength=32&cpuArchitectur e=i386&lang=en

  • Uploading files to website not working with Safari in Windows 7

    Safari version: 5.1.7
    OS: Windows 7
    Hi,
    I am a website owner, and I have a feature on my site where users can upload large (up to 50MB) music files to my server. The feature works in Firefox on OSX & Windows platforms and it also works in Safari on OSX. The uploading feature is not working with Safari for Windows. Do you have any idea why and how to fix this? It can't be an issue with my server as it works in other browsers fine and works fine in Safari for OS X.
    If you have any information on how to solve this or things for me to try to rectify this for use with Windows operating system it would be much appreciated.
    Thanks.

    GREAT NEWS!!!!
    I have solved this issue myself with some help from my a user on Microsoft Forums. The issue stems from the mime type of each Browser Chrome, IE, & Safari for Windows defaults as audio/wav. When the mime type is changed to audio/x-wav everything works. Firefox defaults to audio/x-wav and when changed to audio/wav it DOES NOT work.
    Once I input some code in my .php upload page to change the mimetype if audio/wav is detected everything works GREAT!!!
    So Here is what you need to do: Find your upload page and input this code:
    echo "<p>MIME Type: ".$_FILES["file"]["type"]."</p>";   
    right before your "If/then" statement of file type. For me it was near line 30 in my upload.php page, but I'm sure this is different for everyone.
    This will detect and DISPLAY the default mime type of your browser on the error page when your upload doesn't work. Once you know what mime type works for your file type then you can change your "if/then" statement for mime type upload to change your mime type to the correct one.
    I don't want to give the code here, because I'm sure it's specific to your file types and your site construction, but this should lead you on the right track.
    ***This is the solution if you ARE NOT ABLE to upload any certain file in a certain Browser. It has to do with mime type construction***
    I hope this helps others like it helped me!!!!!

  • Why do aria-live="assertive" not working in safari 6?

    I have a .Net Web Application where the requirement is to notify the user whenever there is an automatic change on the Page. For that I have used <div> tag with role="alert" and aria-live="assertive" attributes. The Feature is not working with safari 6. An already available discussion says the feature should work with Safari 6. Please refer link https://discussions.apple.com/message/19537778#19537778
    But it seems that the Fix is still not available with safari 6.
    Please suggest if something is missing in the implemenation or some alternate way or workaround available.

    Hey everyone,
    Did some more research, thanks to user dominic23, I found the answer.
    Quit and relaunch and Safari.
    Go to Safari Preferences > Security > Internet Plug-ins
    Make sure that the box next to ' Allow all other plug-ins'  it is cheked. 
    Also make sure that 'Allow Java'  is checked as well.
    Happy browsing!

  • Does br Not work for Safari Browser?

    Using Safari on Vista
    If you look here http://www.banquettables.pro/ When you add an item to the cart, there is a shopping cart that appears using ajax in the right column.
    THIS Text Below shows up.
    You may checkout online securely, or call and order 866-290-0813
    We Accept Visa, MC, Discover, and AMEX.
    BUT the thing is , there is a
    between the 2 sentences to make a space. This works in all browsers but safari.
    Does
    NOT work for safari?

    A BR tag just makes a line break, not an extra space between lines. It seems to be working fine in Safari. Perhaps a paragraph break <p /> i s what you want.

  • YouTube will not work on safari for me on the ipad. Is there anyway to fix this? I can go anywhere else on the internet fine and it works on google chrome, but on safari it shows a blank screen with the bar on top after it loads.

    YouTube will not work on safari for me on the ipad. Is there anyway to fix this? I can go anywhere else on the internet fine and it works on google chrome, but on safari it shows a blank screen with the bar on top after it loads, if it's even loading at all.
    I do not know if it's relevant or not, but I got a message on my ipad while on safari saying that my iPhone has a virus. I looked it up and it seems it might have just been an ad from the website I was on, but it happened around the same time YouTube stopped working.

    You will find that using the YouTube app will provide a better viewing experience for YouTube videos.

  • My audio does not work on my pavilion dv4. i just bought this laptop a few days ago. what's going on

    my audio does not work on my pavilion dv4

    This worked for me.
    Hold down the option key while using the Finder “Go To Folder” command. Enter ~/Library/Preferences/com.apple.dashboard.plist.  Move the .plist to your desktop.
    Log out/in
    If it works, delete the .plist on your desktop.
    If  the same, return the .plist to where you got them from, overwriting the newer ones.
    If you prefer to make your user library permanently visible, use the Terminal command found below.
    Show User Library
    You might want to bookmark the command. I had to use it again after I installed 10.8.4. I have also been informed that if you drag the user library to Finder it will remain visible.

  • My Facetime audio does not work on my MacBook

    My Facetime audio does not work on my MacBook, video is fine.  Volume set to max, internal mic is "on", mute is 'off'.  Advise

    While we all have MacBooks in this forum not all of us use FaceTime. There's a FaceTime Support Community where everybody uses FaceTime. You should also post this question there to increase your chances of getting an answer. https://discussions.apple.com/community/mac_app_store/facetime_for_mac

  • Macbook pro to HDTV, video is working but audio is not working, how to make audio work as well

    Macbook pro to HDTV, video is working but audio is not working, how to make audio work as well

    If you use an HDMI cable, the audiostream will be integrated, so there will be sound when using an HDMI cable!
    Not necessarily.  That only works as stated if you have one of the most recent MBP's that has a built-in HDMI port.
    If the MBP only has a Thunderbolt or miniDisplayPort, you need an appropriate adapter cable and even if you use an HDMI adapter or cable to connect to your HDTV there is no guarantee it will carry audio.  You have to determine if your specific MBP model supports audio out through its miniDisplayPort or Thunderbolt output, and whether the adapter does likewise.

Maybe you are looking for

  • How to stop email notifications

    I share reminders with my wife and every time she changes something in her shared calendar, I get an email notification.  How do I stop them?

  • 12 core Mac Pro does not improve render time over iMac quad core

    I'm rendering the same composition independently on two computers and they are basically rendering at the same rate, which is slightly better than 1 frame per second. The project settings and preferences are identical in each instance (with the excep

  • HTTP to RFC synchronous scenario Issue

    Hi Folks,     Currently I'm working on a HTTP to RFC synchronous scenario.  Everything went well till i triggered the message. While triggering the message i'M GETTING IS AS BELOW Result: http-Status:  500 Internal Server Error Payload: <SAP:Error> <

  • Can you use DSP VI's in realtime with a standard sound card?

    In some of the example i have seen mention of a NI speedy 33 card that can be used with the DSP vis to carry out realtime chnages to sound, i cant think of a reason why not but is it possible to do this by outputting the realtime data to a normal sou

  • Error loading XML Document from /analytics/saw.dll/common/privileges.xml

    I tested my procedure for upgrading from OBI 11.1.1.5 to 11.1.1.6 which was successful. I had to rollback to OBI 11.1.1.5 using my database backup and VM snapshot due to project requirements. The OBI application successfully comes up but users who lo