var RUN = { isMobile:function(){ var userAgentInfo = navigator.userAgent,Agents = ["Android", "iPhone","SymbianOS", "Windows Phone","iPad", "iPod"],flag = false; for (var v = 0; v < Agents.length; v++) { if (userAgentInfo.indexOf(Agents[v]) > 0) { flag = true; break; } } return flag; }, singVideo:function(dom,data,size){ //鍗曚釜瑙嗛鎾斁鍣紝鍙噸澶嶈皟鐢 if(data.poster==""||data.poster==null||data.poster=='undefined'){ data.poster='images/video-def.jpg'; } if(RUN.isMobile()){ size.width = '100%'; size.height = (size.height/100-0.25)+'rem'; var singleVideo = dom.jPlayer({ ready: function () { $(this).jPlayer("setMedia", data); $(this).find("video").attr({ "x5-playsinline":"true", "x-webkit-airplay":"allow", "playsinline":"", "controls":false }); }, play:function(event){ $(this).find("video").attr({ "controls":true }); }, swfPath: "../../dist/jplayer", supplied: "webmv, ogv, m4v", size: { width: size.width, height: size.height, cssClass: size.cls }, fullWindow:false, noFullWindow:{ android_phone: /android.*?mobile/, iphone: /iphone/, }, nativeVideoControls:{ all: /./ }, preload:'auto', useStateClassSkin: true, autoBlur: true, smoothPlayBar: true, keyEnabled: true, remainingDuration: false, toggleDuration: true }); } else{ size.width +='px'; size.height +='px'; var singleVideo = dom.jPlayer({ ready: function () { $(this).jPlayer("setMedia", data); dom.parent().find(".jp-mute").on("mouseover",function(){ var that = $(this); $(this).prev().css({ 'visibility': 'visible', }); $(this).parent().addClass("jp-volume-controls-sel"); $(this).parent().off().mouseleave(function(){ $(this).removeClass("jp-volume-controls-sel"); that.prev().css({ 'visibility': 'hidden', }); }); });; }, swfPath: "../../dist/jplayer", supplied: "webmv, ogv, m4v", size: { width: size.width, height: size.height, cssClass: size.cls }, useStateClassSkin: true, autoBlur: true, smoothPlayBar: true, keyEnabled: true, remainingDuration: false, toggleDuration: true }); } }, videoOpen:function(dom,data,size){ var html = '