Go Back   CodingForums.com > :: Client side development > General web building > Building for mobile devices

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-15-2010, 12:23 PM   PM User | #1
needsomehelp
Regular Coder

 
Join Date: Oct 2009
Posts: 302
Thanks: 4
Thanked 3 Times in 3 Posts
needsomehelp can only hope to improve
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;-)
needsomehelp is offline   Reply With Quote
Old 03-15-2010, 11:37 PM   PM User | #2
SSCR9
New Coder

 
Join Date: Mar 2010
Location: New York
Posts: 29
Thanks: 0
Thanked 1 Time in 1 Post
SSCR9 is an unknown quantity at this point
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:
Code:
<!-- Didn't you get this the first time? -->
<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>
SSCR9 is offline   Reply With Quote
Old 07-24-2011, 12:44 AM   PM User | #3
Rasputin007
New to the CF scene

 
Join Date: Jul 2011
Location: UK
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rasputin007 is an unknown quantity at this point
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.
Rasputin007 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:02 AM.


Advertisement
Log in to turn off these ads.