Play Sound in WebView using JavaScript

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Play Sound in WebView using JavaScript

Postby shishir » Wed Jul 08, 2009 9:41 am

Hi,

I have a local index.html file which consist of javascript code to
play sound.
Following is the brief code of javascript sound part

<div onclick="PlaySound('http://flyf35.com/1.mp3')" style="text-
decoration:underline;">Click here to play Sound</div>

<hr />

When i run this index.html through internet explore then it works fine
and i am able to hear the sound as well but how can i run this through
WebView. Is there any way to run this through ChromeWebClient etc

Please reply.
shishir
Freshman
Freshman
 
Posts: 2
Joined: Sun Jul 05, 2009 9:16 pm

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 7 guests