Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.WebUI\Themes\DefaultTheme\Control\My\MyVideoSWEdit.ascx
??<%@ Control Language="C#" AutoEventWireup="true" Inherits="AVA.ResourcesPlatform.WebUI.Control.My.MyVideoSWEdit" %> <%= new MyVideoNavInstance(this) { Local = MyVideoNavItem.??????, Video = this.Video }.ToHtml() %> <div class="box well"> <div class="p_title"> <span class="title">????????</span>????????????<span class="f_r"> </span> </div> <hr /> <div class="userInput pwd"> <form id="frmVideoSWEdit" action="" method="post" onsubmit="return false;"> <table border="0" cellpadding="2px" cellspacing="2px" class="myTab"> <% if (Has(this.ViewData["_VideoSW"]) == false) { //???????????? %> <tr id="AVAPlayerContainerTR"> <td colspan="2"> <div style="margin-top: 10px;"></div> <%-- <div id="JWPlayerHTML4">??????????????????????????????????????????????????lash?????</div>--%> <div style="position: relative; height: 400px; width: 600px;"> <div id="divVideoNotFoundMessage" style="display: none"> </div> <div style="position: absolute;"> <div id="JWPlayerHTML5"></div> </div> </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 nrURL = "<%= this.VideoResourcePath.VideoShow %>"; //var nrURL = "http://localhost:15148/upload/video/06d3fedbb4904f3e969fce268343c3f7/test.mp4"; var hdURL = "<%= this.VideoResourcePath.HighDefinition %>"; function changeVideo(pos, statue) { currentPos = jwplayer("JWPlayerHTML5").getPosition(); jwplayer("JWPlayerHTML5").load(nrURL); jwplayer("JWPlayerHTML5").onPlaylistItem(function () { jwplayer("JWPlayerHTML5").seek(currentPos); }) } MP4Player(nrURL); function MP4Player(url, seek) { jwplayer("JWPlayerHTML5").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, modes: [ { type: 'flash', src: '<%= Request.WebPath()+"/Tools/JWPlayer/AvaPlayer.swf" %>' }, { type: 'html5' } ], plugins: { '<%= Request.WebPath()+"/Tools/JWPlayer/cueboysw.swf" %>': { dockname: '??????', title: "<%= this.Video.Name.ToScriptChar() %>", introduction: "????????<%= this.Video.Description %>..", repeatable: false, // dimensions: '100x50', // editable: false, // url: '<%= Request.WebPath() %>/Tools/JWPlayer/Service/VideoSWXMLAdd.aspx?Guid=<%= this.Video.Guid %>&TemplateGuid=<%= new Random().Next() %>', <% if (this.Video._ListVideoSW.Count > 0) { %> file: "<%= Request.WebPath() %>/Tools/JWPlayer/Service/VideoSWXML.aspx?Guid=<%= this.Video.Guid %>&TemplateGuid=<%= new Random().Next() %>", <% } %> onclick: 'play' } } }); if (typeof (seek) != "undefined" && seek > 0) { if (jwplayer("JWPlayerHTML5").getState() != 'PLAYING') { //???????????????????? jwplayer("JWPlayerHTML5").seek(seek); } 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 AVAGetRecLength() { var position = jwplayer("JWPlayerHTML5").getPosition(); if (position == null || typeof (position) == "undefined") { position = 0; } position = Math.round(position, 0); return Helper.SecondToTime(position); } </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["_VideoSW.Seconds"].ToDouble()/1000)) { Class = "ipt-t ipt-t-dft ", OnDblClick = "try{this.value = AVAGetRecLength();}catch (ex) { }" }%> <%= new HtmlButton("????????","try{$('#frmVideoSWEdit [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 HtmlSelect("SW", "Value", "Key", "Key") { Option=CreateInstance.VideoSWDao.Items() }.InsertOption(DefineEnum.???.Define(),"",0).SelectValue(this.ViewData["_VideoSW.SW"])%> <%= new HtmlYKTip("SW") %> </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["_VideoSW"], "?????????", "?????????"), "VideoSWEdit", "VideoSWEditClient(this);").Style(new { Width = "100px" })%> <% if (Has(this.ViewData["_VideoSW"]) == false) { //???????????? %> <%= new HtmlButton("??????") { OnClick = "window.location.href = '" + WebUrl.MyVideoSWList(this.Video.Guid) + "';" }.Style(new { Width = "100px" })%> <% } %> </td> </tr> </table> </form> </div> <script type="text/javascript"> //?????? $.validator.initConfig({ validatorGroup: "VideoSWEdit", form: "#frmVideoSWEdit", alertMessage: true, showMessage: false }); //????? $("#frmVideoSWEdit [name=Seconds]").formValidator({ validatorGroup: "VideoSWEdit", rules: { required: null//, //regex: "decmal1" }, message: { required: "???????????"//, //regex: "???????????" } }); //?????? $("#frmVideoSWEdit [name=SW]").formValidator({ validatorGroup: "VideoSWEdit", rules: { required: null }, message: { required: "??????????????" } }); </script> <script type="text/javascript"> function VideoSWEditClient(send) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.ClientAjax.VideoSWEdit", data: Global.GetFormValue($("#frmVideoSWEdit")), async: true, dataType: 'json', success: function (result) { $(send).val('<%= IN(this.ViewData["_VideoSW"],"?????????", "?????????") %>'); alert('<%= IN(this.ViewData["_VideoSW"],"???????????????", "???????????????") %>'); Global.Disabled(send, false); //window.location.href = result; VideoSWResult(result); }, beforeSend: function () { $(send).val('<%= IN(this.ViewData["_VideoSW"],"????????????...", "????????????...") %>'); Global.Disabled(send, true); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { $(send).val('<%= IN(this.ViewData["_VideoSW"],"?????????", "?????????") %>'); Global.Disabled(send, false); var message = XMLHttpRequest.responseText; Global.Error(message); } }); } </script> <script type="text/javascript"> function VideoSWResult(result) { var guid = '<%= this.ViewData["_VideoSW.Guid"] %>'; if (guid != "") { window.location.href = result.RedirectUrl; } else { $("#frmVideoSWEdit [name=Seconds]").val(""); $("#frmVideoSWEdit [name=SecondsEnd]").val(""); $("#frmVideoSWEdit [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