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

有没有人做过像土豆网的视频网站??

不需要土豆网站
那么强大
但是还试很多视频播放的。
大家提供下参考资料:
(1)代码
(2)运用那些技术() --------------------编程问答-------------------- 做视频站很多政策风险的 --------------------编程问答--------------------  没 帮顶 --------------------编程问答-------------------- up --------------------编程问答--------------------
引用 1 楼 ttg520 的回复:
做视频站很多政策风险的


“政策风险”其实正好是某些公司赚钱的地方。

技术并不好时,政策帮你赚钱。 --------------------编程问答--------------------
引用 4 楼 sp1234 的回复:
引用 1 楼 ttg520 的回复:
做视频站很多政策风险的


“政策风险”其实正好是某些公司赚钱的地方。

技术并不好时,政策帮你赚钱。

老大谈下
技术方面的
--------------------编程问答-------------------- 不就是在线播放吗?
首先开一个列表,点击播放就行了,会用播放器代码吗?

列表把视频文件名传过来,用获取的文件名构建路径就可以播放了
--------------------编程问答-------------------- 关键是速度,视频的上传速度和下载速度 --------------------编程问答-------------------- 没做过,顶下 --------------------编程问答-------------------- http://sky.tengsou.com,
一个朋友做的 --------------------编程问答-------------------- up --------------------编程问答-------------------- up --------------------编程问答--------------------
引用 9 楼 alan0128 的回复:
http://sky.tengsou.com,
一个朋友做的

打不开! --------------------编程问答--------------------
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
///VideoPlaying 的摘要说明
/// </summary>
public class VideoPlaying
{
public VideoPlaying()
{
//
//TODO: 在此处添加构造函数逻辑
//
}
    /// <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;
    }
}
支持多种格式的播放器,借鉴网上一VB开源码
前台
 <div id="div1" runat="server">
                <%=playHtml %>></div> --------------------编程问答-------------------- 帮顶 --------------------编程问答-------------------- 上传大文件是个问题 --------------------编程问答-------------------- http://topic.csdn.net/u/20091028/12/ea951082-70d4-46be-9c43-d07ce77e000a.html
http://topic.csdn.net/u/20091106/16/97340562-77ba-4dfd-912e-c5d13b30275b.html --------------------编程问答-------------------- 有,一年前在迫不得已的情况下用jsp做的,SSH框架,楼主开个价吧!
补充:.NET技术 ,  非技术区
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,