facebook fbml 应用程序 - 如何使视频自动播放?

发布于 2024-10-10 00:36:31 字数 340 浏览 0 评论 0原文

我正在我的 Facebook 页面中写下 fbml,并且我希望视频在页面加载时自动播放。我正在使用下面的代码。但这对我不起作用。我在这里做错了什么吗?

<fb:swf swfbgcolor="000000" imgstyle="border-width:3px; border-color:white;" swfsrc='http://www.youtube.com/v/xxxxxxxxxxx&autoplay=1' imgsrc='http://img59.imageshack.us/img59/1129/16631569.jpg' width='398' height='259' />

I am writing down fbml in my facebook page, and I want the video to be autoplay while page loads. I am using below code. But it is not working for me. Am I doing anything wrong here?

<fb:swf swfbgcolor="000000" imgstyle="border-width:3px; border-color:white;" swfsrc='http://www.youtube.com/v/xxxxxxxxxxx&autoplay=1' imgsrc='http://img59.imageshack.us/img59/1129/16631569.jpg' width='398' height='259' />

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

Saygoodbye 2024-10-17 00:36:31

如果您想自动播放 Flash 对象,可以使用 fb:swf 标记的 waitforclick 属性并将其值设置为 false。如需了解更多信息,请查看官方文档

请注意,主要出于安全原因,配置文件中不允许自动播放,因此不要尝试在那里使用它。

If you want to autoplay a flash object you can use the waitforclick attribute of the fb:swf tag and set its value to false. For more info please check the official documentation.

Be careful, autoplaying is not allowed in profiles mainly for security reasons, so don't try to use it there.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文