Bug 19461 - Browser shows pop up "Your Browser can not play sound files."
Summary: Browser shows pop up "Your Browser can not play sound files."
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Plug-ins (show other bugs)
Version: 525.x (Safari 3.1)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL: http://www.webreference.com/js/column...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-09 23:37 PDT by sameer.inbox
Modified: 2008-06-10 08:59 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sameer.inbox 2008-06-09 23:37:59 PDT
Steps to reproduce:

1) go to http://www.webreference.com/js/column20/embed.html

2) It will shows popup Your Browser can not play sound files on safari.



Please refer following javascript which validate the browser for
audio Plugin. 

<!--

 var NSsound = navigator.plugins && navigator.plugins["LiveAudio"];
 var IEsound = navigator.plugins && document.all;
 var audioEnabled = NSsound || IEsound;
 if (!audioEnabled)
 alert("Your browser cannot play sound files.");
 if (audioEnabled)
 document.write("Let's take a look at the <CODE><FONT COLOR='#0000cc'>&lt;EMBED&gt;</FONT></CODE> tag in action (requires a sound-enabled browser):</P><EMBED SRC='xfiles.mid' AUTOSTART='false' HEIGHT='60' WIDTH='144'></P>")
else document.write("Your browser cannot play sound files.");

// -->
Comment 1 Alexey Proskuryakov 2008-06-10 08:59:10 PDT
The code on this page works as expected, given that the Netscape Navigator "LiveAudio" plug-in is not installed. Given that even Firefox doesn't include it (and the same error is displayed in Firefox), I do not think that there is a bug here, or an enhancement to be made in WebKit.