mozilla/geckoview

Video playback allowlisting

stefanpostolache opened this issue · 0 comments

Hi, I would like to thank you in advance for your help.

I am looking to enable autoplay with Geckoview, however due to recent changes in privacy policies autoplay with audio is no longer allowed; only if the user allows it, interacts with the page, or if media audio is turned off. That said, I have read through the API documentation and have noticed the existence of PermissionDelegate.PERMISSION_AUTOPLAY_AUDIBLE, which would be used in the PermissionDelegate#onContentPermissionRequest to allow/deny permission. How exactly could this permission be triggered? since it is not requested by default when the play() function is triggered. Will there be an API to allowlist the autoplay of resources? Can the triggering be done with WebExtensions?

I look forward to hearing your answers on these topics