跟踪视频文件-将flv嵌入到swf [英] tracking video files - embedding flv to swf

查看:106
本文介绍了跟踪视频文件-将flv嵌入到swf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个mRSS供稿,其中包含视频信息. 例如<video fileTitle"testing" fileurl="http://www.example.com/test.flv> 当我们发出此消息时,用户正在使用他们自己的播放器,并且提要中包含视频文件的URL,因此无法向其中添加分析功能.除非我们通过swf文件加载flv.例如: <video fileTitle"testing" fileurl="http://www.example.com/loader.swf?fileurl=test.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>

所以我的问题是,如果玩家期望使用flv文件,可以给他们提供预载了flv的swf文件吗?它是swf文件有关系吗?如果没关系,那么我可以将分析代码添加到swf文件中,然后将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.

先谢谢了.

推荐答案

您可以使用服务器端代码,用于在请求RSS提要和/或从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.

这篇关于跟踪视频文件-将flv嵌入到swf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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