当前位置:编程学习 > C#/ASP.NET >>

小弟求救。。。那位大侠有Asp.net的BBS论坛制作视频哦

给个制作BBS视频的网站!
或发我邮箱 346653426@qq.com 

小弟在这万分感谢! --------------------编程问答-------------------- 视频?
源码有。
http://www.51aspx.com --------------------编程问答-------------------- 大哥 我不会做哦
--------------------编程问答--------------------
/// <summary>
    /// 生成视频播放器的HTML源码
    /// </summary>
    /// <param name="strUrl"></param>
    /// <param name="strWidth"></param>
    /// <param name="strHeight"></param>
    /// <returns></returns>
    public static string GetPlayHtml(string strUrl, string strWidth, string strHeight)
    {
        string resultHtml = "";
        if (strUrl != "")
        {
            string Exts = "avi,wmv,asf,mov,rm,ra,ram";
            string isExt = "";
            if (strUrl != "")
            {
                isExt = strUrl.Substring(strUrl.LastIndexOf(".") + 1);//获取后缀名 
            }
            if (!Exts.Contains(isExt))
            {
                resultHtml = "非法视频文件";
            }
            else
            {
                switch (isExt)
                {
                    case "avi":
                    case "wmv":
                    case "asf":
                    case "mov":
                        resultHtml += "<EMBED id=MediaPlayer src=" + strUrl + " width=" + strWidth + " height=" + strHeight + " loop='false' autostart='true'></EMBED>"; 
                        break;
                    //case "mov":
                    case "rm":
                    case "ra":
                    case "ram":
                        resultHtml += "<OBJECT height=" + strHeight + " width=" + strWidth + " classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA>";
                        break;
                }
                resultHtml += "<PARAM NAME='_ExtentX' VALUE='12700'>";
                resultHtml += "<PARAM NAME='_ExtentY' VALUE='9525'>";
                resultHtml += "<PARAM NAME='AUTOSTART' VALUE='-1'>";//VALUE='-1'
                resultHtml += "<PARAM NAME='SHUFFLE' VALUE='0'>";
                resultHtml += "<PARAM NAME='PREFETCH' VALUE='0'>";
                resultHtml += "<PARAM NAME='NOLABELS' VALUE='0'>";
                resultHtml += "<PARAM NAME='SRC' VALUE='" + strUrl + "'>";
                resultHtml += "<PARAM NAME='CONTROLS' VALUE='ImageWindow'>";
                resultHtml += "<PARAM NAME='CONSOLE' VALUE='Clip'>";
                resultHtml += "<PARAM NAME='LOOP' VALUE='0'>";
                resultHtml += "<PARAM NAME='NUMLOOP' VALUE='0'>";
                resultHtml += "<PARAM NAME='CENTER' VALUE='0'>";
                resultHtml += "<PARAM NAME='MAINTAINASPECT' VALUE='0'>";
                resultHtml += "<PARAM NAME='BACKGROUNDCOLOR' VALUE='#000000'>";
                resultHtml += "</OBJECT>";
                resultHtml += "<BR>";
                resultHtml += "<OBJECT height=32 width=" + strWidth + " classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA>";
                resultHtml += "<PARAM NAME='_ExtentX' VALUE='12700'>";
                resultHtml += "<PARAM NAME='_ExtentY' VALUE='847'>";
                resultHtml += "<PARAM NAME='AUTOSTART' VALUE='0'>";
                resultHtml += "<PARAM NAME='SHUFFLE' VALUE='0'>";
                resultHtml += "<PARAM NAME='PREFETCH' VALUE='0'>";
                resultHtml += "<PARAM NAME='NOLABELS' VALUE='0'>";
                resultHtml += "<PARAM NAME='CONTROLS' VALUE='ControlPanel,StatusBar'>";
                resultHtml += "<PARAM NAME='CONSOLE' VALUE='Clip'>";
                resultHtml += "<PARAM NAME='LOOP' VALUE='0'>";
                resultHtml += "<PARAM NAME='NUMLOOP' VALUE='0'>";
                resultHtml += "<PARAM NAME='CENTER' VALUE='0'>";
                resultHtml += "<PARAM NAME='MAINTAINASPECT' VALUE='0'>";
                resultHtml += "<PARAM NAME='BACKGROUNDCOLOR' VALUE='#000000'>";
                resultHtml += "</OBJECT>";
            }
        }
        return resultHtml;
    }
--------------------编程问答-------------------- 楼上的似乎没有看题,楼主要的视频教程 --------------------编程问答-------------------- 到webcast里看看
http://developer.51cto.com/developer/aspdotnet/ --------------------编程问答-------------------- 首先要了解bbs的开发流程,然后用asp.net,简单的bbs开发并不难
其次是你对net这门技术的了解程度 --------------------编程问答-------------------- 网上免费论坛一大把! --------------------编程问答-------------------- 支持一下
补充:.NET技术 ,  非技术区
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,