mozilla / geckoview

GeckoView is a set of components for embedding Gecko in Android apps

Home Page:https://geckoview.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Auto play video playback

giri-qs opened this issue · comments

I'm developing signage application with Geckoview.
Need to show images and video in slide show.
Videos are not playing automatically.

Need guide to enable auto play videos and you tube videos

`
val view: GeckoView = findViewById(R.id.webview)
val session = GeckoSession()

val runtime = GeckoRuntime.create(this)
session.open(runtime)
view.setSession(session)
session.loadUri("https://example.com")
`

There is no API withing GeckoView that can help with this. You could consider using similar techniques to addons like this one and use the WebExtension API to enable this behaviour.

hello, the extension you mentioned : https://addons.mozilla.org/en-CA/firefox/addon/video-background-play-fix/ is not installing with installBuiltIn or ensureBuiltIn on WebExtension API. can you please take a look.