我想知道人们是否在我的网站上观看了视频

问题描述:

我想知道人们是否一直在我的网站上观看视频.就像训练.如果您观看了整个视频,则可以填写表格.我试图在Internet上找到解决方案,但没有发现任何有用的东西.有谁知道我们该怎么做.

顺便说一句视频是.swf格式,我已经使用了对象并进行了嵌入.

代码

I Want to know if people watch videos on my website to the end. Its like training. If you watch the entire video then you will get form to fill. I tried to find solution on Internet but didn''t find any thing use. Does Anyone know how we can do it .

BTW video is in .swf format and i have use object and embed.

CODE

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
               codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,16,0"
               width="1200" height="800">
               <param name="movie" value="HCvid.swf">
               <param name="quality" value="high">
               <param name="play" value="true">
               <param name="LOOP" value="false">
			   <param name="menu" value="true">
			   <param name="SCALE" value="noborder">
			   <embed src="HCvid.swf" width="1200" height="800" play="true" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer"
               type="application/x-shockwave-flash" scale="noborder" menu="true" >
               </embed>
               </object>

无法判断视频是否已完成.请记住,网络是无状态的动物.下载视频后,无法告诉用户观看了该视频,导航到另一个页面还是关闭了浏览器.因此,无法判断用户是否只是快速前进到最后.

如果您可以控制SWF文件,则可以使用ActionScript在最后进行重定向.

如果视频是从服务器流式传输的,则您可以更好地控制该过程.
There is no way to tell if the video has been completed. Remember that the web is a stateless animal. After the video is downloaded there is no way to tell if the use watched it, navigated to another page, or closed the browser. For that matter there is no way to tell if the user simply fast forwarded to the end.

If you have control over the SWF files you could use ActionScript to have a redirect at the end.

If the videos were streamed from the server you would have more control over the process.


可能考虑使用Silverlight之类的无状态的东西.至少应该能够每秒触发一次事件,并检查用户在视频中的位置.
Might consider something like Silverlight which is not stateless. At the minimum should be able to have an event fire every second or so and check where the user is in the video.