How to pass local music files to a WebView HTML interface?

33 views
Skip to first unread message

foto...@gmail.com

unread,
Aug 9, 2026, 8:01:30 AM (10 days ago) Aug 9
to DroidScript
Herkese merhaba, DroidScript ve WebView kullanarak bir uygulama geliştiriyorum. DroidScript'in yerel tarafı ile HTML arayüzü arasında bir köprü oluşturmak istiyorum. Özellikle, cihazdan yerel müzik dosyalarını tarayıp veya seçip yollarını (veya verilerini) WebView'e göndermem gerekiyor, böylece HTML arayüzümde bunları listeleyip çalabilirim. Bu iletişim köprüsünü kurmanın en iyi yolunu açıklayan veya basit bir örnek paylaşan var mı? Teşekkürler!

Jumar

unread,
Aug 9, 2026, 9:56:13 AM (10 days ago) Aug 9
to DroidScript
Hi. You don't need a bridge, you can use the app.* methods in your webview by adding this script tag at the top of your html file:

<script src="ds:/Sys/app.js"></script>

Make sure your html file is located at the root of your project directory.

If you really want to use a bridge, you can use the web.Execute(code) or web.Func("funcName", arg1, arg2) where "funcName" is a function defined globally in your webview.

foto...@gmail.com

unread,
Aug 10, 2026, 12:50:24 PM (9 days ago) Aug 10
to DroidScript
Thanks.

9 Ağustos 2026 Pazar tarihinde saat 16:56:13 UTC+3 itibarıyla Jumar şunları yazdı:
Reply all
Reply to author
Forward
0 new messages