Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Themes\Bsk\Control\My\MyVideoTimeInfoEdit.ascx
??<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyVideoTimeInfoEdit" %> <div class="well"> <div class="p_title"> <span class="title">????????</span>???????????<span class="f_r"> <%= new MyVideoNavInstance(this) { Local = MyVideoNavItem.?????, Video = this.Video }.ToHtml() %> </span> </div> <hr /> <div class="userInput pwd"> <form id="frmVideoTimeInfoEdit" action="" method="post" onsubmit="return false;"> <table border="0" cellpadding="2px" cellspacing="2px" class="myTab"> <% if (Has(this.ViewData["_VideoTimeInfo"]) == false) { //???????????? %> <tr id="AVAPlayerContainerTR"> <td colspan="2"> <div style="margin-top: 10px;"></div> <div id="JWPlayerHTML4">??????????????????????????????????????????????????lash?????</div> <div style="display: none;"> <video id="JWPlayerHTML5" height="480" width="700"></video> </div> <script type="text/javascript" src='<%= Request.WebPath()+"/Tools/JWPlayer/jwplayer.js" %>'></script> <script type="text/javascript"> if ('<%= this.VideoResourcePath.VideoShow %>' == '') { alert("???????????????????????????????????????"); } if ('<%= this.VideoResourcePath.Message %>' != '') { alert("<%= this.VideoResourcePath.Message %>"); } var isFlash = (navigator.userAgent.indexOf("iPad") == -1 && navigator.userAgent.indexOf("iPhone") == -1); var nrURL = "<%= this.VideoResourcePath.VideoShow %>"; var hdURL = "<%= this.VideoResourcePath.HighDefinition %>"; function changeVideo(pos, statue) { if (statue) { SwitchBitrate(hdURL); } else { SwitchBitrate(nrURL); } } MP4Player(nrURL); function MP4Player(url, seek) { //if (!!!document.createElement('canvas').getContext // || navigator.userAgent.indexOf("Firefox") != -1 // || (navigator.userAgent.indexOf("Safari") != -1 && navigator.userAgent.indexOf("iPad") == -1 && navigator.userAgent.indexOf("iPhone") == -1)) { //???iPad,iPhone???Html5?????? if (isFlash) { //HTML4 $("#JWPlayerHTML5").parent().hide(); $("#JWPlayerHTML4").show(); jwplayer("JWPlayerHTML4").setup({ flashplayer: '<%= Request.WebPath()+"/Tools/JWPlayer/AvaPlayer.swf" %>', controlbar: 'bottom', file: FormatHTML5Path(url), image: "<%= SettingGroup.VideoCoverL(this.Video) %>", provider: 'http', autostart: "true", streamer: "start", height: 400, width: 600, plugins: { '<%= Request.WebPath()+"/Tools/JWPlayer/cueboy.swf" %>': { dockname: '?????', heading: "<%= this.Video.Name.ToScriptChar() %>", dimensions: '100x50', editable: true, url: '<%= Request.WebPath() %>/Tools/JWPlayer/Service/VideoTimeInfoXMLAdd.aspx?Guid=<%= this.Video.Guid %>&TemplateGuid=<%= new Random().Next() %>', <% if(this.Video._ListVideoTimeInfo.Count>0) { %> file: "<%= Request.WebPath() %>/Tools/JWPlayer/Service/VideoTimeInfoXML.aspx?Guid=<%= this.Video.Guid %>&TemplateGuid=<%= new Random().Next() %>", <% } %> onclick: 'play' } } }); if (typeof (seek) != "undefined" && seek > 0) { //??? jwplayer("JWPlayerHTML4").seek(seek); } } else { //HTML5 $("#JWPlayerHTML4").hide(); $("#JWPlayerHTML5").parent().show(); jwplayer("JWPlayerHTML5").setup({ controlbar: 'bottom', file: url, image: "<%= SettingGroup.VideoCoverL(this.Video) %>", provider: 'http', autostart: "true", streamer: "start", height: 400, width: 600, modes: [ { type: 'html5' }, { type: 'flash', src: '<%= Request.WebPath()+"/Tools/JWPlayer/AvaPlayer.swf" %>' } ] }); if (typeof (seek) != "undefined" && seek > 0) { //??? jwplayer("JWPlayerHTML5").seek(seek); } } } function GoToTimeSpot(seek) { seek = seek / 1000;//???????? //if (!!!document.createElement('canvas').getContext // || navigator.userAgent.indexOf("Firefox") != -1 // || (navigator.userAgent.indexOf("Safari") != -1 && navigator.userAgent.indexOf("iPad") == -1 && navigator.userAgent.indexOf("iPhone") == -1)) { //???iPad,iPhone???Html5?????? if (isFlash) { //HTML4 if (typeof (seek) != "undefined" && seek > 0) { if (jwplayer("JWPlayerHTML4").getState() != 'PLAYING') { //???????????????????? jwplayer("JWPlayerHTML4").play(); } jwplayer("JWPlayerHTML4").seek(seek); } } else { //HTML5 if (jwplayer("JWPlayerHTML5").getState() != 'PLAYING') { //???????????????????? jwplayer("JWPlayerHTML5").play(); } if (typeof (seek) != "undefined" && seek > 0) { //??? jwplayer("JWPlayerHTML5").seek(seek); } } } function FormatHTML5Path(url) { var temp1 = '<%= this.VideoResourcePath.RouteWebSite %>'; var temp2 = '<%= this.VideoResourcePath.RouteRecourseSite %>'; url = url.replace(temp1, temp2); return url; } function SwitchBitrate(url) { if (isFlash) { var position = jwplayer("JWPlayerHTML4").getPosition(); if (position == null || typeof (position) == "undefined") { position = 0; } MP4Player(url, position); } else { var position = jwplayer("JWPlayerHTML5").getPosition(); if (position == null || typeof (position) == "undefined") { position = 0; } MP4Player(url, position); } } function AVAGetRecLength() { if (isFlash) { var position = jwplayer("JWPlayerHTML4").getPosition(); if (position == null || typeof (position) == "undefined") { position = 0; } position = Math.round(position, 0); return Helper.SecondToTime(position); } else { var position = jwplayer("JWPlayerHTML5").getPosition(); if (position == null || typeof (position) == "undefined") { position = 0; } position = Math.round(position, 0); return Helper.SecondToTime(position); } } function AVAPause() { if (navigator.userAgent.indexOf("iPad") == -1 && navigator.userAgent.indexOf("iPhone") == -1) { jwplayer("JWPlayerHTML4").pause(true); } else { jwplayer("JWPlayerHTML5").pause(true); } } </script> <div class="clear"> </div> <hr /> </td> </tr> <% } %> <tr> <td style="text-align: right; width: 150px;"><span class="label"><span class="required">*</span>?????(??:??:??)??</span></td> <td> <%= new HtmlText("Seconds", AVA.ResourcesPlatform.Config.Helper.SecondToTime(this.ViewData["_VideoTimeInfo.Seconds"].ToDouble() / 1000)) { Class = "ipt-t ipt-t-dft ", OnDblClick = "try{this.value = AVAGetRecLength();}catch (ex) { }" }%> <%= new HtmlButton("????????","try{$('#frmVideoTimeInfoEdit [Name=Seconds]').val(AVAGetRecLength());}catch (ex) { }") %> <%= new HtmlYKTip("Seconds") %> </td> </tr> <tr> <td style="text-align: right;"><span class="label"><span class="required">*</span>??????</span></td> <td> <%= new HtmlTextArea("Description", this.ViewData["_VideoTimeInfo.Description"], 2000)%> <%= new HtmlYKTip("Description") %> </td> </tr> <tr> <td style="text-align: right;"></td> <td></td> </tr> <tr> <td style="text-align: right;"></td> <td> <%= new HtmlHidden("Key",this.KEY)%> <%= new HtmlHidden("ParentVideo", this.Video.Guid)%> <%= new HtmlSubmit(IN(this.ViewData["_VideoTimeInfo"], "????????", "????????"), "VideoTimeInfoEdit", "VideoTimeInfoEditClient(this);").Style(new { Width = "100px" })%> <% if (Has(this.ViewData["_VideoTimeInfo"]) == false) { //???????????? %> <%= new HtmlButton("??????") { OnClick = "window.location.href = '" + WebUrl.MyVideoTimeInfoList(this.Video.Guid) + "';" }.Style(new { Width = "100px" })%> <% } %> </td> </tr> </table> </form> </div> <script type="text/javascript"> //?????? $.validator.initConfig({ validatorGroup: "VideoTimeInfoEdit", form: "#frmVideoTimeInfoEdit", alertMessage: true, showMessage: false }); //????? $("#frmVideoTimeInfoEdit [name=Seconds]").formValidator({ validatorGroup: "VideoTimeInfoEdit", rules: { required: null//, //regex: "decmal1" }, message: { required: "???????????"//, //regex: "???????????" } }); //????? $("#frmVideoTimeInfoEdit [name=Description]").formValidator({ validatorGroup: "VideoTimeInfoEdit", rules: { required: null }, message: { required: "???????????" } }); </script> <script type="text/javascript"> function VideoTimeInfoEditClient(send) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.VideoTimeInfoEdit", data: Global.GetFormValue($("#frmVideoTimeInfoEdit")), async: true, dataType: 'json', success: function (result) { $(send).val('<%= IN(this.ViewData["_VideoTimeInfo"],"????????", "????????") %>'); alert('<%= IN(this.ViewData["_VideoTimeInfo"],"??????????????", "??????????????") %>'); Global.Disabled(send, false); //window.location.href = result; VideoTimeInfoResult(result); }, beforeSend: function () { $(send).val('<%= IN(this.ViewData["_VideoTimeInfo"],"???????????...", "???????????...") %>'); Global.Disabled(send, true); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { $(send).val('<%= IN(this.ViewData["_VideoTimeInfo"],"????????", "????????") %>'); Global.Disabled(send, false); var message = XMLHttpRequest.responseText; Global.Error(message); } }); } </script> <script type="text/javascript"> function VideoTimeInfoResult(result) { var guid = '<%= this.ViewData["_VideoTimeInfo.Guid"] %>'; if (guid != "") { window.location.href = result; } else { $("#frmVideoTimeInfoEdit [name=Seconds]").val(""); $("#frmVideoTimeInfoEdit [name=SecondsEnd]").val(""); $("#frmVideoTimeInfoEdit [name=Description]").val(""); try { AVAContinue(); } catch (ex) { } } } </script> </div>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de