源码下载:
前台:.aspx
后台 .cs (通过后台获取flv的地址,进行视频播放)
protected void Page_Load(object sender, EventArgs e) { this.video_content.InnerHtml = Play("sp.flv", 472, 385); } public static string Play(string url, int width, int height) { string strTmp = url.ToLower(); if (strTmp.EndsWith(".flv")) { return flv(url, width, height); } else { return "视频文件数据错误"; } } private static string flv(string url, int width, int height) { System.Text.StringBuilder sb = new System.Text.StringBuilder(); sb.Append(""); return sb.ToString(); }
需要支持的flv 视频播放插件为:Flvplayer.swf,FLVPlayer_Progressive.swf