Skip to content
This repository was archived by the owner on Jan 10, 2024. It is now read-only.
This repository was archived by the owner on Jan 10, 2024. It is now read-only.

Setting media parameters for WkWebview #136

@kschmidt79

Description

@kschmidt79

Hi!

I would like to set some media parameters in the web view to enable html5 video playback for example. We are rendering something in this web view which contains html5 videos. But they are not playing, you just get an image preview of the video.

I found this:

https://developer.apple.com/documentation/webkit/wkwebviewconfiguration

For example this two:
allowsInlineMediaPlayback
https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1614793-allowsinlinemediaplayback

mediaTypesRequiringUserActionForPlayback
https://developer.apple.com/documentation/webkit/wkwebviewconfiguration/1851524-mediatypesrequiringuseractionfor

Is there a possibility to pass this parameters to the webview object? I'm very new to this topic, maybe someone have an idea.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions