<%@ Page Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.VideoPlay" %> <%= this.Video.Name %> -<%= this.Title %> <%= Import.CSS("js", "/JQueryUI/css/redmond/jquery-ui-1.8.9.custom.css")%> <%= Import.ScriptTheme("js/jquery.1.9.js")%> <%= Import.ScriptTheme("js/excanvas.min.js")%> <%= Import.Script("/URL/jquery.url.js")%> <%= Import.Script("/JsonCookie/json2.js")%> <%= Import.Script("/JsonCookie/jquery.cookie.js")%> <%= Import.Script("/JsonCookie/jquery.jsoncookie.js")%> <%= Import.ScriptTheme("js/jquery-ui.min.js")%> <%= Import.Script("js", "/YK_Validate/YK_Validate.js")%> <%= Import.Script("js", "/YK_Validate/YK_ValidateRegex.js")%> <%= Import.CSS("js", "/YK_Validate/validator.css")%> <%= Import.Script("/global.aspx")%> <%= Import.ScriptTheme("js/highcharts.js")%> <%-- <%= Import.ScriptTheme("js/libs/jquery.jqplot.min.js")%> <%= Import.ScriptTheme("js/libs/plugins/jqplot.lineRenderer.js")%> <%= Import.CSS("style/jquery.jqplot.min.css")%>--%> <%= Import.Script("js", "/global.js")%> <%= new HeadInstance(this) { CacheEnable = 60*60, }.ToHtml() %> <%= new BrowserTipInstance(this) { CacheEnable = 60*60, }.ToHtml() %> <%= new HeaderInstance(this) { CacheEnable = 60*60, HeaderItem = HeaderItem.VideoShow, ReplaceItems = new ReplaceItems().Add("HeaderSearch", ReplaceTypeEnum.Html, new SearchVideoMaxInstance(this) { CacheEnable = 60*60, }.ToRenderHtml()) }.ToHtml()%> <% var AttachmentViaVideo = this.Video.FileName == "暂无文件" ? false : true; if (AttachmentViaVideo) { %>
<%= new NavInstance(this) { CacheEnable = 60*60, }.Add(Define.Get("Client_优课点播"),WebUrl.Video(new List().AddOnly("OrderBy",((int)AVA.ResourcesPlatform.Config.OrderType.先置顶后推荐再播放量).ToString()))).ToHtml()%>

<%= this.Video.Name %>

<%= new VideoPlayPlayerInstance(this) { CacheEnable = 5, }.ToHtml() %>
<% var VideoResourcePath = CreateInstance.VideoDao.GetResourcePath(this.Video); %> <% if (VideoResourcePath.SHD != "") { %> <%= new HtmlAnchor("超高清") { Class = "btn SwitchBitrate", Href = "#SHD", OnClick = "SwitchBitrate('" + VideoResourcePath.SHD + "');return false;" }.Style(new { Display="none"})%>   <% } %> <% if (VideoResourcePath.HD != "") { %> <%= new HtmlAnchor("高清") { Class="btn SwitchBitrate", Href = "#HD", OnClick="SwitchBitrate('"+VideoResourcePath.HD+"');return false;" }.Style(new { Display="none"})%>   <% } %> <% if (VideoResourcePath.NR != "") { %> <%= new HtmlAnchor("标清") { Class="btn SwitchBitrate", Href = "#NR", OnClick="SwitchBitrate('"+VideoResourcePath.NR+"');return false;" }.Style(new { Display="none"})%>   <% } %> <% if (VideoResourcePath.LW != "") { %> <%= new HtmlAnchor("流畅") { Class="btn SwitchBitrate", Href = "#LW", OnClick="SwitchBitrate('"+VideoResourcePath.LW+"');return false;" }.Style(new { Display="none"})%>   <% } %>
<%= new PVHistoryCollectInstance(this) { PKId= this.Video.Guid,PVTarget="Video" }.ToHtml() %> <%= new VideoPlayToMyAlbumInstance(this) { }.ToHtml() %> <%-- <%= new MarkingMarkInstance(this) { MKType=(int)AVA.ResourcesPlatform.Model.Pub.MarkingMKTypeEnum.推荐,MKTarget=AVA.ResourcesPlatform.Model.Pub.MarkingMKTargetEnum.视频.ToString(),MKGuid=this.Video.Guid }.ToHtml()%>--%> <% if (this.UserCode != null) { %>
<%= new MarkingScoreInstance(this) {ScoreEnable= true, ScoreTarget=(int)AVA.ResourcesPlatform.Model.Pub.ScoreScoreTarget.Subject, ScoreGuid=this.Video.Guid }.ToHtml()%>
<% } %>
<% } else { %>
<%= new NavInstance(this) { CacheEnable = 60*60, }.Add(Define.Get("Client_优课点播"),WebUrl.Video()).ToHtml()%>
<%= new VideoPlayAttachmentInstance(this) { CacheEnable = 60,TransferControl="/videoplay/videoplayattachment_tabs" }.ToHtml()%>
<%= new VideoPlayInfoInstance(this) { CacheEnable = 5, }.ToHtml() %>
<% } %>
<% if (AttachmentViaVideo) { %>
<%= new VideoPlayAttachmentInstance(this) { CacheEnable = 60,TransferControl="/videoplay/videoplayattachment_pills" }.ToHtml()%>
<% } %>
<%= new CommentAddInstance(this) { TargetType = "Video", TargetGuid = this.Video.Guid }.ToHtml()%> <%= new CommentListInstance(this) { TargetType = "Video", TargetGuid = this.Video.Guid }.ToHtml()%>
<%= new CommentAddInstance(this) {TransferControl="/Comment/CommentVideoAskAdd", TargetType = "VideoAsk", TargetGuid = this.Video.Guid }.ToHtml()%> <%= new CommentListInstance(this) {TransferControl="/Comment/CommentVideoAskList", TargetType = "VideoAsk", TargetGuid = this.Video.Guid }.ToHtml()%>
<% if (CreateInstance.VideoSWPatternDao.Count(l => l.ParentVideo == this.Video) > 0) { %>
<%= new VideoPlaySWPatternInstance(this) { CacheEnable = 60, Width=550, Height=450 }.ToHtml()%>
<% } %>
热播排行
<%= new IndexVideoByInstance(this) { CacheEnable = 60, PageSize = 10, OrderBy = AVA.ResourcesPlatform.Config.OrderType.周播放量, TransferControl = "/Index/IndexVideoByHot_orders" }.ToHtml()%>
<%= new FooterInstance(this) { CacheEnable = 60*60, }.ToHtml() %> <%= new PVHistoryAddInstance(this) { PKId = this.Video.Guid, PVTarget = "Video",PVType=1 }.ToHtml()%>