本文介绍了如何在asp.net中保护flash player src的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个门户网站,允许授权用户观看不同的电视频道。电视频道详细信息及其基本信息和视频链接也保存在数据库中。在TVChannels表单中,我使用GridView来显示频道。当用户点击某个频道时,我从数据库中获取ClickEvent上的ChannelLink字符串变量(即视频链接),然后将Flash播放器控件添加到面板以及下面代码中的链接:

I am working on a portal that will allow the authorized users to watch different TV channels. The TV channels details along with its basic info and video link also saved in the database. In the TVChannels form, I am using GridView to display the channels. When user click on a channel, I am getting ChannelLink string variable (which is video link) on ClickEvent from Database and then add flash player controls to a panel along with link in below code:

Panel1.Controls.Add(new LiteralControl("<object width=\"100%\" height=\"100%\">"));
Panel1.Controls.Add(new LiteralControl("<param name=\"movie\" value=\"http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf\"></param>"));
Panel1.Controls.Add(new LiteralControl("<param name=\"flashvars\" value=\"src=" + ChannelLink+ "&controlBarMode=floating&autoPlay=true&streamType=live&scaleMode=stretch\"></param>"));
Panel1.Controls.Add(new LiteralControl("<param name=\"allowFullScreen\" value=\"true\"></param>"));
Panel1.Controls.Add(new LiteralControl("<param name=\"allowscriptaccess\" value=\"always\"></param>"));
Panel1.Controls.Add(new LiteralControl("<embed src=\"http://fpdownload.adobe.com/strobe/FlashMediaPlayback.swf\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"100%\" height=\"100%\" flashvars=\"src=" +ChannelLink + "&controlBarMode=floating&autoPlay=true&streamType=live&scaleMode=stretch\"></embed></object>"));





视频以这种方式嵌入并播放成功。但问题是我的视频链接暴露给任何人,并且可以通过查看Flash播放器的html源轻松重用。那么请帮助我如何保护我的视频链接?



The Video embed and played successfully in this way. BUT the problem is my Video Links are exposed to any one and that can be reused easily by viewing the html source of Flash player. So please help me how to secure my video links?

推荐答案


这篇关于如何在asp.net中保护flash player src的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 09:28