嵌入Flash透明FLV [英] Embed Flash Transparent FLV

查看:196
本文介绍了嵌入Flash透明FLV的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



要求:
- Flv以透明模式运行 - 我必须能够查看下面的HTML内容。
- 电影不自动播放
- 电影被包含在div和positionend中绝对使用CSS
- 没有视频控制或覆盖,你不应该知道它是一个flv
- 在加载电影被隐藏
- 使用jQuery,我点击一个图像链接来显示和播放视频,再次点击它停止和隐藏视频 - 反之亦然

我曾尝试使用swfobject.js和JavaScript控件的Longtail视频播放器,但没有喜悦。视频是不透明的,并通过点击控制播放仍然功能。



我过于复杂似乎是一个相当简单的任务。

我很高兴探索任何实现。



Adob​​e Flash嵌入参数已正确设置,wmode = transparent。



任何帮助将不胜感激。

欢呼
保罗

解决方案

这将使您在Flash中获得透明覆盖。它是一套相当不错的代码。



http://code.google.com/p/swfobject/



SWFObject示例

上面给出的例子是你使用SWFObject的时候需要的,但是如果你想使用Flash插件提供的其他一些参数呢? SWFObject使添加任何额外的参数变得非常容易。下面的例子是你可能希望用来嵌入你的Flash内容的一些不同的方法。



一个简单的例子添加一些额外的参数

 < script type =text / javascript> 
var so = new SWFObject(movie.swf,mymovie,200,100%,7,#336699);
so.addParam(quality,low);
so.addParam(wmode,transparent);
so.addParam(salign,t);
so.write(flashcontent);
< / script>
< div id =flashcontent><! - 在这里放置占位符图片.-->< / div>

http://blog.deconcept.com/swfobject/

编辑:
感谢非现实:已有更新在代码库中,您现在可以在这里访问它: http://www.code.google.com / p / swfobject


I am trying to embed a flash movie (.flv) into a webpage with a transparent background.

Requirements: - Flv runs in transparent mode - I must be able to view html contents below. - Movie does not auto play - Movie is contained in a div and positionend absolutely using CSS - No video controls or overlays, you shouldn't know it's an flv - On load Movie is hidden - Using jQuery, I click an image link to show and play the video, clicking it again stops and hides the video - vice versa

I have tried using Longtail Video Player with swfobject.js and javascript controls but no joy. Video is not transparent and controls with a click to play still feature.

Am I overcomplicating what appears to be quite a simple task.

I happy to explore any implementation.

Adobe flash embed parameters have been set correctly and wmode = transparent.

Any help would be greatly appreciated.

Cheers Paul

解决方案

This will get you a transparent overlay in flash. Its a pretty good set of code.

http://code.google.com/p/swfobject/

SWFObject Examples

The example given above is what you need for the bare bones use of SWFObject, but what if you want to use some of the other parameters the Flash plug-in has to offer? SWFObject makes it very easy to add any extra parameter you may need. The examples below are a number of different methods you may wish to use to embed your Flash content.

A simple example adding a few extra parameters

<script type="text/javascript">
var so = new SWFObject("movie.swf", "mymovie", "200", "100%", "7", "#336699");
so.addParam("quality", "low");
so.addParam("wmode", "transparent");
so.addParam("salign", "t");
so.write("flashcontent");
</script>
<div id="flashcontent"><!--put a place holder image in here.--></div>

http://blog.deconcept.com/swfobject/

EDIT: THANKS TO Unreality: There has been an update in the code library you can now access it here: http://www.code.google.com/p/swfobject

这篇关于嵌入Flash透明FLV的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆