beeware / beeware/toga

How to enable autoplay of audio/video in webview?

Open
#2,091 6 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
5.4k
Forks
827
Avg merge
9h 45m
Merged PRs (30d)
58

Description

### What is the problem or limitation you are having?

I tested that there is no similar method in toga to realize `webView.getSettings().setMediaPlaybackRequiresUserGesture(false);` . How to solve it? I do require autoplay because I uses .set_content. I tried some methods of html but all failed. I think toga should provide some interfaces to change WebView settings, especially autoplay.

### Describe the solution you'd like

---

### Describe alternatives you've considered

---

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

The issue names Toga's WebView and its set_content entry point, along with the media-playback setting it needs to expose. Locate the WebView backend implementations and any existing tests for set_content, then compare how platform-specific settings are handled. Done means autoplay can be configured through a documented, tested WebView interface.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
desktop
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.