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 3 of 3
  1. #1
    Regular Coder
    Join Date
    Oct 2009
    Posts
    478
    Thanks
    7
    Thanked 3 Times in 3 Posts

    .wav file works on a PC and a Nokia 5800 mobile, but not on an IPhone, what would wrk

    the following works for both my Nokia 5800 mobile phone and for my pc playing this sound when needed.

    but it does not work on an IPhone.

    what sound file should i use that would work on all browsers.
    or at least work on an IPhone, then i can some how find out from the $_server strings if it is an IPhone or not and then play a different sound file for them.



    Code:
    <embed src="../notify.wav"
      autostart="true"
      width="0"
      height="0">
    </embed>

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    .wav should work just fine but using embed like you are using might not work. What exactly are you trying to do?
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New Coder
    Join Date
    Mar 2010
    Location
    New York
    Posts
    29
    Thanks
    0
    Thanked 1 Time in 1 Post
    I'm relatively certain that the entity "embed" isn't really compatible with the mobile safari browser. Although, you could just use a <noembed> tag.. then you could just link to the file and they can play it through the default media player. It would look like this:
    Code:
    <!-- You can see that I didn't close off the "embed" tag and instead did it shorthand with this little '/' thing -->
    <embed src="../notify.wav" autostart="true" width="0" height="0" />
    <noembed>
    You're on iPhone! Click here to play the sound: 
    <A HREF="../notify.wav">NOTIFY!</A>
    </noembed>
    But it seems that you're trying to make it play automatically..?
    So in that situation, you could normally use some javascript to play the sound on mousover, but because the iPhone doesn't support mouseover, flash, or embed entities, the only way to do this is via link. Sorry to let you down like that, but mobile Safari isn't that great.. Once they have a flash support for it, I think you'll be in luck.


  •  

    Posting Permissions

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