简体   繁体   English

影片播放时如何使FLV Flash影片文件触发调用URL?

[英]How to make an FLV flash movie file trigger calling an URL when the movie is played?

We're making a viral video which is going to be distributed as FLV movie file free for download and redistribution. 我们正在制作一个病毒视频,它将以FLV电影文件的形式免费分发和下载。

I don't know much about flash yet but I can imagine FLV is just some sort of special flash application which can also include arbitrary code. 我还不太了解Flash,但是我可以想象FLV只是某种特殊的Flash应用程序,还可以包含任意代码。

Is it possible to track how many times that movie file has been played by letting the FLV file perform a server-callback when playback begins? 通过在播放开始时让FLV文件执行服务器回调,是否可以跟踪该电影文件已被播放多少次?

No. The FLV format is just a Sorenson Spark encoded video, which is essentially a variant of h.263. 不可以。FLV格式只是Sorenson Spark编码的视频,本质上是h.263的变体。

It is possible to embed meta-data in an FLV in the form of cue-points, but this cannot contain self-executing code, and has to be caught and handled by the video player. 可以以提示点的形式将元数据嵌入到FLV中,但这不能包含自执行代码,必须由视频播放器捕获和处理。 If you want to perform any tracking or actions from your video, you need to have control over the player itself AFAIK. 如果要对视频执行任何跟踪或操作,则需要控制播放器本身的AFAIK。

As an alternative, you could look into embedding the video within an SWF for distribution. 作为替代方案,您可以考虑将视频嵌入SWF中进行分发。 While this would give you the ability to execute code you would sacrifice the ability to stream the video, which would make it less usable. 尽管这使您能够执行代码,但会牺牲流式传输视频的能力,这将使视频的可用性降低。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM