Skip to content

WebView2 media autoplay( WebView2媒体自动播放) #4333

@zhangjing007

Description

@zhangjing007

Is your feature request related to a problem? Please describe.

When using wails3 to develop a Mobile Pentium 4 program, I encountered a problem that the video cannot play automatically after loading (without disabling the sound). How to set the autoplay-policy=no-user-gesture-required? Note that the program needs to open multiple windows at the same time to play different videos.

在使用wails3开发一个视频播放器程序的时候,遇到视频加载后不能自动播放(在不禁用声音的情况下)的问题。请问怎么设置autoplay-policy=no-user-gesture-required?注意程序是要同时打开多个窗口播放不同视频的。

Describe the solution you'd like

I want an API interface that can customize various policies. Also specify the WebView2 user data directory.
想要一个能够自定义各种策略的api接口。同时能指定WebView2用户数据目录

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions