使用 FBML 在 Facebook 墙上嵌入自定义视频播放器/视频?

发布于 2024-09-29 06:12:54 字数 608 浏览 0 评论 0原文

我正在尝试让视频 (flv) 或 swf 视频播放器在 Facebook 墙上运行,但是无论我做什么 - facebook 都会发布原始 fbml 并忽略代码。我做错了什么?

<fb:swf 
    swfsrc='http://www.domain.com/flv_player/Main.swf' 
    imgsrc='http://www.domain.com/large1.jpg' 
    allowscriptaccess=”all” 
    flashvars='config=http://www.domain.com/playerConfigEmbed/2179.xml' 
    width="384" height="283" />

我也尝试过fb:flv

<fb:flv src='http://www.domain.com/files/file.flv' width='400' height='300' title='my movie' color='#FFBB00' salign='r' img='http://www.domain.com/thumbs/large1.jpg' scale='showall'/>

I'm trying to get a video (flv) or an swf video player to work on Facebook walls, however no matter what I do - facebook posts the raw fbml and ignores the code. What am I doing wrong?

<fb:swf 
    swfsrc='http://www.domain.com/flv_player/Main.swf' 
    imgsrc='http://www.domain.com/large1.jpg' 
    allowscriptaccess=”all” 
    flashvars='config=http://www.domain.com/playerConfigEmbed/2179.xml' 
    width="384" height="283" />

I've also tried fb:flv

<fb:flv src='http://www.domain.com/files/file.flv' width='400' height='300' title='my movie' color='#FFBB00' salign='r' img='http://www.domain.com/thumbs/large1.jpg' scale='showall'/>

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

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

发布评论

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

评论(3

放飞的风筝 2024-10-06 06:12:54

您可以使用开放图元标签轻松地做到这一点。我在这里写了一个关于如何执行此操作的简短教程:http:// /ahrengot.com/tutorials/custom-video-player-on-facebook/

此方法还允许您为 iPhone 提供 HTML5 后备,甚至可以在 Facebook iPhone 应用程序中使用 - 我的示例设置为HTML5 后备也显示了该功能。

You can easily do this with Open Graph meta tags. I've written a short tutorial on how to do it right here: http://ahrengot.com/tutorials/custom-video-player-on-facebook/

This method will also allow you to have HTML5 fallback for iphones, which will even work in the Facebook iPhone app - My example is set up with HTML5 fallback that shows that functionality as well.

万劫不复 2024-10-06 06:12:54

试试那个:

<fb:swf
   swfbgcolor="000000"
   imgstyle="border-width:3px; border-color:white;"
   swfsrc='http://vimeo.com/moogaloop.swf?clip_id=12941088&server=vimeo.com&show_title=1&show_byline=1&show_portrait=1&color=00ADEF&fullscreen=1&autoplay=0&loop=0'
   imgsrc='http://lojke.pl/PapayaLearn/video_link.png'
   width='400' height='302'>

try that one:

<fb:swf
   swfbgcolor="000000"
   imgstyle="border-width:3px; border-color:white;"
   swfsrc='http://vimeo.com/moogaloop.swf?clip_id=12941088&server=vimeo.com&show_title=1&show_byline=1&show_portrait=1&color=00ADEF&fullscreen=1&autoplay=0&loop=0'
   imgsrc='http://lojke.pl/PapayaLearn/video_link.png'
   width='400' height='302'>
北方。的韩爷 2024-10-06 06:12:54

确保自己放置标签

在创建 之前
这将为您搭建一个与Flash沟通的桥梁。

然后:

<Fb:swf
 Swfsrc ='http: // your domain/yourflash.swf '
 Width = '550' height = '400' align ='center ' />

如果这些使用免费托管,最有可能的事情是 Facebook 阻止您的 SWF 可视化。

Insure yourself of placing the label
<Fb:fbjs-bridge />
Before creating your <fb:swf />
This will serve you to create a bridge to communicate with the Flash.

Then:

<Fb:swf
 Swfsrc ='http: // your domain/yourflash.swf '
 Width = '550' height = '400' align ='center ' />

If these working with free Hosting the most probable thing is that Facebook prevents that your SWF is visualized.

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