编辑:实际上问题是这样的:如果用户未登录,则不支持嵌入供稿中的本机视频。(因此,在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
添加permissions:["webview"]
manifest.json
在此之后添加<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->加载未打包的扩展程序->您将看到供稿,但没有本地视频:
如果您使用浏览器打开index.html(并使用<iframe>
),它将显示视频...
如果我使用<webview src="https://www.mydomain.fr/company">
,并且输入正确<iframe>
,则会出现相同的问题:本地视频除外。
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>
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句