【问题标题】:How can i set "playsinline=1" in facebook Embedded Video for WKWebView In Objective - C如何在 Facebook 嵌入式视频中为 WKWebView 在 Objective-C 中设置“playsinline = 1”
【发布时间】:2026-02-12 13:40:02
【问题描述】:

如何在 iframe 中为 WKWebview 嵌入 url 设置 playinline

我还将 WKWebViewConfiguration 的allowInlineMediaPlayback 设置为true。

在 iframe 下方,我在 WKWebView 中加载。

<iframe src="https://www.facebook.com/plugins/video.php?href=https%3A%2F%2Fwww.facebook.com%2Ffacebook%2Fvideos%2F10153231379946729%2F/playsinline=1&show_text=0&width=100%&playsinline=1" width="100%" height="100%" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true" allowFullScreen="false"></iframe>

【问题讨论】:

    标签: ios objective-c facebook embedded-video


    【解决方案1】:

    我认为您在 playsinline=1 之前错过了 。它应该类似于 https://example.com?playsinline=1

    【讨论】: