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-08-2010, 06:08 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
.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>
needsomehelp is offline   Reply With Quote
Old 03-08-2010, 06:24 PM   PM User | #2
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
.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!||||
_Aerospace_Eng_ is offline   Reply With Quote
Old 03-13-2010, 05:03 PM   PM User | #3
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
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.
SSCR9 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 02:30 PM.


Advertisement
Log in to turn off these ads.