编辑:实际上是这个问题:如果用户未登录,则不支持嵌入提要中的 native 视频。(因此在 webview chrome 应用程序中,它未登录)错误报告给 Facebook 此处:https://developers.facebook.com/bugs/353742028342246/ 和也许这是“设计使然”
老问题:
我想在 Chrome 应用程序中显示 Facebook 页面提要,它运行良好,但原生视频不可见。
要重现,请使用 hello world 应用程序:https://github.com/GoogleChrome/chrome-app-samples/tree/master/samples/hello-world
在manifest.json中添加permissions:["webview"]
在 <h1>Hello, World!</h1>
之后添加:
<webview src="https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2Fyoutube%2F&tabs=timeline&width=340&height=500&small_header=false&adapt_container_width=true&hide_cover=false&show_facepile=true" width="340" height="500" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"></webview>
(使用此页面:https://developers.facebook.com/docs/plugins/page-plugin 并将“iframe”替换为“webview”)
Chrome -> 加载解压的扩展 -> 你会看到 feed 但没有原生视频:
如果您使用浏览器打开 index.html(并使用 <iframe>
),它将显示视频...
如果我使用 <webview src="https://www.mydomain.fr/company">
,其中包含正确的 <iframe>
,同样的问题:除 native 视频外都有效。
PS : Youtube 视频正在运行,您可以尝试使用 Youtube 页面:
<webview src="https://www.facebook.com/plugins/page.php?href=https%3A%2F%2Fwww.facebook.com%2Fyoutube%2F&tabs=timeline&width=340&height=500&small_header=false&adapt_container_width=true&hide_cover=false&show_facepile=true" width="340" height="500" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"></webview>
最佳答案
关于html - Facebook 嵌入提要中的视频未显示在 Chrome 应用程序中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41404991/