跟踪视频文件 - 将 flv 嵌入 swf
我们有一个包含视频信息的 mRSS 提要。 例如
所以我的问题是玩家是否期望 flv 文件是可以给他们一个预加载了 flv 的 swf 文件吗?如果不重要,我可以将分析代码添加到 swf 文件中,然后将 flv 提供给用户 谁正在连接到该文件。
预先感谢
we have a mRSS feed that contains video information.
e.g <video fileTitle"testing" fileurl="http://www.example.com/test.flv>
when we send this out users are using their own player and the video file url is included in the feed, so there is no way to add analytics to this. unless we load the flv via a swf file. for example:<video fileTitle"testing" fileurl="http://www.example.com/loader.swf?fileurl=test.flv>
so my question is if a player is expecting a flv file is it ok to give them a swf file with a flv preloaded in it? Does it matter that it is a swf file? if it doesn't matter then I can add analytics code to the swf file and then server the flv to the users who are connecting to the file.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用服务器端代码在 RSS Feed 发送时发送分析事件被请求和/或从 Web 服务器加载 FLV 文件时(例如,通过 PHP 代理脚本转发您的 FLV)。
分析代码与从客户端收集的代码不同,服务器将必须执行额外的工作,但您至少应该能够收集一些数据,尽管可能不是您感兴趣的所有数据。
You could use server-side code to send analytics events when the RSS feed is requested, and/or when FLV files are loaded from the web server (forward your FLVs through a PHP proxy script, for example).
The analytics code won't be the same as code gathered from clients, and the server will have to do extra work, but you should at least be able to collect some data, though perhaps not everything you are interested in.
我想说答案是否定的。
假设当您说“用户正在使用自己的播放器”时,这可以是不同的基于 Flash 的视频播放器,例如有些可能使用 JW Player,有些可能使用 Flowplayer,其他人可能使用自己定制的播放器,然后提供fileurl 中的 swf 文件将不起作用。
I would say that the answer is no.
Assuming that when you say "users are using their own player", that can be different Flash based video players, like for example some may be using JW Player, some may use Flowplayer and others may use their own custom made players, then providing a swf file in the fileurl won't work.