<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Live.aspx.cs" Inherits="RM.Web.LiveTelecast.Live" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title><%=item.LiveTelecast_Name %></title>
    <link href="Css/Live_Global.css" rel="stylesheet" type="text/css" />
    <link href="Css/LiveTelecast.css" rel="stylesheet" type="text/css" />
    <link href="JavaScript/linkFlyScroll/linkFlyRollCss.css" rel="stylesheet" type="text/css" />
    <script src="../Themes/Scripts/jquery-1.8.2.min.js" type="text/javascript"></script>         
    <script src="../Training/Learn/m/ckplayer/ckplayer.js" type="text/javascript"></script>
    <script src="JavaScript/linkFlyScroll/linkFlyScroll-1.0.0.min.js" type="text/javascript"></script>
    <link href="../Themes/Scripts/ShowMsg/msgbox.css" rel="stylesheet" type="text/css" />
    <script src="../Themes/Scripts/ShowMsg/msgbox.js" type="text/javascript"></script>
    
    <script type="text/javascript">
        var rmtp = '<%=RM.Common.DotNetConfig.ConfigHelper.GetAppSettings("RmtpURL")%>';
        //        $(function () {livePage.init();});
    </script>
    <script src="JavaScript/Live.js" type="text/javascript"></script>

     <script type="text/javascript">
         $(function () {
             livePage.init();
             var flashvars = { f: rmtp, id: '<%=Request["key"] %>-<%=userkey %>', record: '<%=IsVideo %>' };
             var params = { bgcolor: '#FFF', allowFullScreen: true, allowScriptAccess: 'always', wmode: 'opaque' };
             var attributes = { id: "test" };
             //swfobject.embedSWF("vidioOprater.swf", "altContent2", "493", "370", "9.0.124", null, flashvars, params, attributes);
             var video = [flashvars.f + '->video/mp4'];
             //以下为新方法
             CKobject.embed('vidioOprater.swf', 'altContent2', 'ckplayer_aa', '493', "370", false, flashvars, video, params);
         });
         function erralert(msg) {
             livePage.alertMsg('<%=RM.Common.DotNetConfig.LanguageHelper.GetKey("student_index5")%>:' + msg, 2, 3000);
         }
         function livestart(name) {
             //name是传入的ID
             livePage.data.userId = name;             
             livePage.data.usertype = 0;
             livePage.changeLive(1);
         }
    </script>

     <script type="text/javascript">
         //播放
         $(function () {
             livePage.init();
             //var flashvars = { f: rmtp + livePage.data.key, c: 0, b: 1, p: 1 };
             var flashvars = { f: rmtp +"/"+ livePage.data.key, c: 0, b: 1, p: 1 };
             var params = { bgcolor: '#FFF', allowFullScreen: true, allowScriptAccess: 'always', wmode: 'opaque'};
             //CKobject.embedSWF('/LiveTelecast/JavaScript/liveCkplayer/ckplayer.swf', 'altContent', 'ckplayer_a1', '493', '370', flashvars, params);
             var video = [flashvars.f + '->video/mp4'];
             //以下为新方法
             CKobject.embed('/Training/Learn/m/ckplayer/ckplayer.swf', 'altContent', 'ckplayer_a1', '493', "370", false, flashvars, video, params);
         });
</script>
</head>
<body>
     <div id="page">
    <div class="nav" id="title_Data" data="<%=item.LiveTelecast_State %>" ui="<%=item.LiveTelecast_CreateUserId %>"
            un="<%=item.LiveTelecast_CreateUserName %>" il="<%=item.DeleteMark %>">
            <div class="nav_Content">
                <div class="page_title"><span class="ptRed"><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("live_Room")%></span><span class="ptTxt"><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("live_Room_stu")%></span></div>                
            </div>
        </div>

    <div id="content" style="height:410px;" >         
        <div class="vc_Video" style="float:left; padding:0px 0px 0px 5px;">
        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("Courseware_CsTeacher")%>
            <div id="altContent">
                <p><a href="http://www.adobe.com/go/getflashplayer">Either scripts and active content are not permitted to run or Adobe Flash Player version
                		10.0.0 or greater is not installed.</a></p>
            </div>
        </div>

        <div class="vc_Video" style="float:right; padding:0px 5px 0px 0px;"  >
        <div><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("live_Room_stu")%>（<%=item.LiveTelecast_CreateUserName %>）</div>
            <div id="altContent2" >
                <p><a href="http://www.adobe.com/go/getflashplayer">Either scripts and active content are not permitted to run or Adobe Flash Player version
                		10.0.0 or greater is not installed.</a></p>
            </div>
        </div>
    </div>

    <div id="content2" style="height:210px;">
        <div class="liveDetail">
            <ul class="liveDet">
                <li>
                    <div class="detailLeft">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("ExamPlan_zhiboName")%>：<span class="vc_Keywords"><%=item.LiveTelecast_Name %></span>
                    </div>
                    <div class="detailLeft">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("live_Room_fl")%>：<span class="vc_Keywords"><%=item.LiveTelecast_TypeName %></span>
                    </div>
                </li>
                <li>
                    <div class="detailLeft">
                        <%=RM.Common.DotNetConfig.LanguageHelper.GetKey("live_Room_zj")%>：<span class="vc_Keywords"><%=item.LiveTelecast_Teacher %></span>
                    </div>
                </li>
                <li><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("live_Room_cy")%>：<span class="vc_Keywords"><%=item.LiveTelecast_UserGroupName %></span>
                </li>
            </ul>
            <div><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("live_Room_ms")%></div>
            <div class="detailDis liveDiscription">
                <div id="liveDis">
                    <%=item.LiveTelecast_Discription %>
                </div>
            </div>
        </div>
    </div>

    </div>

    <div class="closeLiveResult" id="closeWarning">
        <img src="/LiveTelecast/Images/LiveWarning.png" alt="" class="warningImg" />
        <span id="warningText"><%=RM.Common.DotNetConfig.LanguageHelper.GetKey("live_Room_end")%></span>
    </div>
</body>
</html>
