Hello and welcome to our community! Is this your first visit?
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
    Thanked 3 Times in 3 Posts

    what is the correct method to play a sound on a IPhone mobile?

    I have tried the embed and object but both do not work on the IPhone.

    can anyone suggest what other methods i can have a sound play when the page loads. (auto play, not click here to play sound;-)

  2. #2
    New Coder
    Join Date
    Mar 2010
    New York
    Thanked 1 Time in 1 Post
    Didn't I already reply to you? The mobile version of safari can only support an external media player, so they only way to play the file is by clicking (or "tapping") and loading it into the default media player. Now, if you want to come up with some add-on for jailbroken phones, by all means do. I'd love to have it. But until then, this is the only code that works:
    <!-- Didn't you get this the first time? -->
    <embed src="../notify.wav" autostart="true" width="0" height="0" />
    You're on iPhone! Click here to play the sound: 
    <A HREF="../notify.wav">NOTIFY!</A>

  3. #3
    New to the CF scene
    Join Date
    Jul 2011
    Thanked 0 Times in 0 Posts
    Apple has disabeled the "autoplay" feature on the iPhone, because of potential huge data plan cost for the user when html pages would automatically download and play media that might be on remote servers.
    I came across this when trying to build a lockscreen theme that automatically played a video in a windows. All that was possible is a QuickTime placeholder that you have to touch and then you only see the video in fullscreen.
    Sadly there is even today no solution to this problem.


Posting Permissions

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