Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.WebUI\Tools\CreateVideoImage\Create.aspx
??<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Create.aspx.cs" Inherits="AVA.ResourcesPlatform.WebUI.Tools.CreateVideoImage.Create" %> <!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></title> <%= Import.Script("/jquery-1.44.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.Script("/global.aspx")%> <%= Import.Script("js", "/global.js")%> <script type="text/javascript"> function ReturnValue(path, value) { var control = '<%= Request.GetFormValue("valueControl") %>'; $(window.parent.window.document).find(control).val(value); //?????? $(window.parent.window.document).find("#imgCover")[0].src= path; $(window.parent.window.document).find("#imgCover").removeClass("hidden"); window.parent.window.$.fn.fancybox.close(); } </script> <link href="../../CSS/Global.css" rel="Stylesheet" type="text/css" /> </head> <body> <div id="divMain" class="gContent"> <div class="gCnta"> <div class="gCnta-cont"> <div class="g-title-2"> <h3 class="txt-14">???????????</h3> <% if (string.IsNullOrEmpty(this.VideoResourcePath.VideoShow)) { %> <span>????????????????P4???????????????????? </span> <% } else { %> <span>??????????????????????????2-30???? </span> <% } %> </div> <div class="ln-thick ln-c-mid"> </div> <% if (!string.IsNullOrEmpty(this.VideoResourcePath.VideoShow)) { %> <div class="subcontent"> <table class="g-table-cntacomm" style="margin-top: 0; display: none;"> <tr> <td style="vertical-align: bottom"></td> </tr> <tr> <td style="padding: 0;"> <table border="0"> <tr> <td style="width: 250px; padding: 2px;"> <input type="file" id="upFile" name="upFile" style="width: 200px" /> </td> <td style="padding: 2px;">Path: <%= new HtmlText("Path", this.Path)%> <br /> FileName: <%= new HtmlText("FileName", this.FileName)%> <br /> Height: <%= new HtmlText("Height", this.Height)%> <br /> Width: <%= new HtmlText("Width", this.Width)%> <br /> ValueControl: <%= new HtmlText("ValueControl", Request.GetFormValue("valueControl"))%> <br /> ReturnControl: <%= new HtmlText("ReturnControl", Request.GetFormValue("returnControl"))%> <br /> <input type="submit" id="btnUpload" value="?? ??" /> </td> </tr> </table> </td> </tr> </table> <table style="width: 100%"> <tr> <td align="center"> <table> <tr> <td> <div id="JWPlayerHTML4" style="display: none;">??????????????????????????????????????????????????lash?????</div> <div style="display: none;"> <video id="JWPlayerHTML5" height="340" width="570"></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 MobileClient = function () { var sUserAgent = navigator.userAgent.toLowerCase(); var bIsIpad = sUserAgent.match(/ipad/i) == "ipad"; var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os"; var bIsAndroid = sUserAgent.match(/android/i) == "android"; if (bIsIpad || bIsIphoneOs || bIsAndroid) { return true; } return false; } //var isFlash = (navigator.userAgent.indexOf("iPad") == -1 && navigator.userAgent.indexOf("iPhone") == -1); var isFlash = !MobileClient(); var nrURL = "<%= this.VideoResourcePath.VideoShow %>"; var hdURL = "<%= this.VideoResourcePath.HighDefinition %>"; function changeVideo(pos, statue) { if (statue) { SwitchBitrate(hdURL); } else { SwitchBitrate(nrURL); } } MP4Player(nrURL, 0); function MP4Player(url, seek) { if (isFlash) { url = FormatHTML5Path(url); //HTML4 $("#JWPlayerHTML5").parent().hide(); $("#JWPlayerHTML4").show(); <%if (this.VideoResourcePath.IsRTMP) { //this.VideoResourcePath.IsRTMP %> var fileurl = url.slice(url.lastIndexOf("//") + 1), streamerurl = url.slice(0, url.lastIndexOf("//")); <% } %> jwplayer("JWPlayerHTML4").setup({ flashplayer: '<%= Request.WebPath()+"/Tools/JWPlayer/AvaPlayer.swf" %>', controlbar: 'bottom', <% if (this.VideoResourcePath.IsRTMP){%> file: fileurl,// 6.0 ??????url???mp4:filename.mp4 streamer: streamerurl, <% }else {%> file: url, streamer: "start", <% } %> autostart: "true", height: 340, width: 570, }); if (typeof (seek) != "undefined" && seek > 0) { if (jwplayer("JWPlayerHTML4").getState() != 'PLAYING') { //???????????????????? jwplayer("JWPlayerHTML4").play(); } jwplayer("JWPlayerHTML4").seek(seek); } } else { //HTML5 $("#JWPlayerHTML4").hide(); $("#JWPlayerHTML5").parent().show(); <% if( this.VideoResourcePath.IsRTMP){ %> url = url.replace(/\/\//g, "/") var hlsurl = "http://" + url.slice(6, url.lastIndexOf(":") + 1) + "<%= SettingGroup.HlsVodPort %>" + url.slice(url.lastIndexOf(":") + 5, url.length); <% } %> jwplayer("JWPlayerHTML5").setup({ controlbar: 'bottom', autostart: "true", <% if( this.VideoResourcePath.IsRTMP){ %> file: hlsurl, <% } else{ %> streamer: "start", file: url, <% } %> height: 340, width: 570, 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 (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) { var position = 0; if (isFlash) { var position = jwplayer("JWPlayerHTML4").getPosition(); if (position == null || typeof (position) == "undefined") { position = 0; } } else { var position = jwplayer("JWPlayerHTML5").getPosition(); if (position == null || typeof (position) == "undefined") { position = 0; } } MP4Player2(url, position); } function MP4Player2(url, seek) { if (isFlash) { //HTML4 $("#JWPlayerHTML5").parent().hide(); $("#JWPlayerHTML4").show(); jwplayer("JWPlayerHTML4").load({ flashplayer: '<%= Request.WebPath()+"/Tools/JWPlayer/AvaPlayer.swf" %>', file: FormatHTML5Path(url), provider: 'http', autostart: "true", streamer: "start" }); if (typeof (seek) != "undefined" && seek > 0) { //??? jwplayer("JWPlayerHTML4").seek(seek); } } else { //HTML5 $("#JWPlayerHTML4").hide(); $("#JWPlayerHTML5").parent().show(); jwplayer("JWPlayerHTML5").load({ file: url, provider: 'http', autostart: "true", streamer: "start", modes: [ { type: 'html5' }, { type: 'flash', src: '<%= Request.WebPath()+"/Tools/JWPlayer/AvaPlayer.swf" %>' } ] }); if (typeof (seek) != "undefined" && seek > 0) { //??? jwplayer("JWPlayerHTML5").seek(seek); } } } </script> </td> </tr> <tr> <td> <table border="0"> <tr> <td align="right" style="padding: 2px;">?????? </td> <td colspan="5" style="padding: 2px;" align="left"> <%= this.FileName %> </td> </tr> <tr> <td align="right" style="padding: 2px;">????? </td> <td style="padding: 2px;" align="left"> <%= this.VideoInfo.Duration %> </td> <td align="right" style="padding: 2px;">???????? </td> <td style="padding: 2px;" align="left"> <%= this.VideoInfo.VCodec %> </td> <td align="right" style="padding: 2px;">?????? </td> <td style="padding: 2px;" align="left"> <%= this.VideoInfo.Width %> </td> </tr> <tr> <td align="right" style="padding: 2px;">????? </td> <td style="padding: 2px;" align="left"> <%= AVA.ResourcesPlatform.Config.Helper.FormatSize(this.VideoInfo.FileSize) %> </td> <td align="right" style="padding: 2px;">???????? </td> <td style="padding: 2px;" align="left"> <%= this.VideoInfo.VFormat %> </td> <td align="right" style="padding: 2px;">?????? </td> <td style="padding: 2px;" align="left"> <%= this.VideoInfo.Height %> </td> </tr> </table> </td> </tr> <tr> <td align="right"> <input type="button" value="???????????" onclick="CreateImage(this);" /> <div id="divCreateImage"></div> <script type="text/javascript"> function CreateImage(send) { if (confirm("??????????????????????????????????????")) { $(send).val("?????..."); //???????????? var second = 2; if (navigator.userAgent.indexOf("iPad") == -1 && navigator.userAgent.indexOf("iPhone") == -1) { jwplayer("JWPlayerHTML4").pause(true); second = jwplayer("JWPlayerHTML4").getPosition(); if (second == null || typeof (second) == "undefined") { second = 2; } } else { jwplayer("JWPlayerHTML5").pause(true); var second = jwplayer("JWPlayerHTML5").getPosition(); if (second == null || typeof (second) == "undefined") { second = 2; } } second = second * 1000;//??????????? var postData = ""; postData += "&Path=" + decodeURIComponent("<%= this.Path %>"); postData += "&FileName=" + decodeURIComponent("<%= this.FileName %>"); postData += "&Width = " + decodeURIComponent("<%= this.Width%>"); postData += "&Height = " + decodeURIComponent("<%= this.Height%>"); postData += "&Second=" + decodeURIComponent(second); Global.HtmlControl("/Tools/CreateVideoImage/CreateImage", postData, send, function (json) { if (json != null) { $("#divCreateImage").html(json.Html); } }); $(send).val("???????????"); } } </script> </td> </tr> </table> </td> </tr> </table> </div> <% } %> </div> </div> </div> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de