Skip to content
This repository has been archived by the owner on Apr 17, 2021. It is now read-only.

Commit

Permalink
Closes issue #2040; disable block autoplay when using geckoview.
Browse files Browse the repository at this point in the history
Block autoplay is unintentionally not disabled when using GeckoView.
If you look, you'll see autoplay blocking is attempted to be disabled
when using the system webview settings further down, but GeckoView
doesn't honor those settings; there's a GeckoView setting which
needs to be set to disable autoplay blocking.
  • Loading branch information
Chris Pearce authored and psymoon committed Apr 18, 2019
1 parent f850913 commit 1c49d4b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class WebRenderComponents(applicationContext: Context, systemUserAgent: String)
runtimeSettingsBuilder.extras(extras)
}
}
runtimeSettingsBuilder.autoplayDefault(GeckoRuntimeSettings.AUTOPLAY_DEFAULT_ALLOWED)

val runtime = GeckoRuntime.create(applicationContext,
runtimeSettingsBuilder.build())
Expand Down

0 comments on commit 1c49d4b

Please sign in to comment.