Play local sound in webview?

Put your problem here if it does not fit any of the other categories.

Play local sound in webview?

Postby Danneman » Tue Aug 18, 2009 2:23 am

Is it possible to play a local sound from a webview using javascript?
Danneman
Junior Developer
Junior Developer
 
Posts: 24
Joined: Thu Mar 26, 2009 12:42 pm

Top

Postby Danneman » Thu Aug 20, 2009 9:38 pm

A reply on another forum resulted in the advice to create a function in java using mediaplayer, and then calling that function from the html-code whenever necessary. This can be achieved using the webview-class's memberfunction AddJavascriptInterface().
Danneman
Junior Developer
Junior Developer
 
Posts: 24
Joined: Thu Mar 26, 2009 12:42 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 17 guests