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


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('')" 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.
Posts: 2
Joined: Sun Jul 05, 2009 9:16 pm


Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 4 guests