网页中嵌入百度影音播放器的代码

@{

    //假如传入1,播放 http://localhost:5578/Upload/[电影天堂心战HD中字.mkv
    //传入2,播放 http://localhost:5578/Upload/狄仁杰之神都龙王_hd.mp4
    //传入3,播放 http://localhost:5578/Upload/人再囧途之泰囧_DVD清晰中字.rmvb   

    //1的下一集是2,2的下一集是3。

    Layout = null;
    string videopath = "";//本集视频地址
    string nextvideopath = "";//下一集视频地址,用来缓冲视频的
    string prewebpage = "";//上一集网页地址
    string nextwebpage = "";//下一集网页地址
    if (ViewBag.id == "1")//默认第一集(viewbag.id是传过来的参数)
    {
        videopath = "http://localhost:5578/Upload/[电影天堂心战HD中字.mkv";
        nextvideopath = "http://localhost:5578/Upload/狄仁杰之神都龙王_hd.mp4";
        prewebpage = "";
        nextwebpage = "http://localhost:5578/index/BDPlayer/2";
    }
    else if(ViewBag.id == "2")
    {
        prewebpage = "http://localhost:5578/index/BDPlayer/1";
        nextwebpage = "http://localhost:5578/index/BDPlayer/3";
        videopath = "http://localhost:5578/Upload/狄仁杰之神都龙王_hd.mp4";
        nextvideopath = "http://localhost:5578/Upload/人再囧途之泰囧_DVD清晰中字.rmvb";
    }
    else if (ViewBag.id == "3")
    {
        prewebpage = "http://localhost:5578/index/BDPlayer/2";
        nextwebpage = "";
        videopath = "http://localhost:5578/Upload/人再囧途之泰囧_DVD清晰中字.rmvb";
        nextvideopath = "";
    }
}



    BDPlayer


   


       
       
   


测试效果:


你可能感兴趣的:(百度,javascript,download,buffer,任务)