<% 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"})%>
<%
}
%>
<%
if (this.Video.HasDownload == true || CreateInstance.UserTypeDao.HasDownloadVideo(this.UserCode))
{
%>
<%= new HtmlAnchor(new HtmlSpan(){ Class="icon icon-download" }+"下载") { Title="下载", Class = "btn ", OnClick="alert(\"如果视频不能正常下载,请用右键另存为的方式下载,下载后请将视频文件名更改为:"+this.Video.FileName.Replace("'","").Replace("\"","")+"\")", Target = "_blank", Href = VideoResourcePath.VideoShow }%>
<%
}
%>
<%-- --%>
<%= 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()%>
<% } %>