Yuyao Ruihua hardvergyár
Szervizvonal:
(+86) 13736048924
Email:
Menü
$('#'+'component_wkpgoUziefRO').find(".iframe_detail_palying_src").hide() var url = ' /phoenix/admin/video/url?photoId=' + 'ntAMEnKpeWaj'; $.ajax({ url: url, type: 'get', success: function(xhr) { var data = JSON.parse(xhr); $('#'+'component_wkpgoUziefRO').find(".video_detail_palying_src").each(function(i) { if (data.video_url) { // 如果当前为微信环境,并且后端返回值 if(is_weixin() == true && data.mp4Url){ data.video_url = data.mp4Url; } var httpU1 = data.video_url.substring(0, 2); var httpU2 = data.video_url.substring(0, 4); var httpU3 = data.video_url.substring(0, 5); if (httpU1 == '//' || 'http' == httpU2 || 'https' == httpU3) { $(this).attr('src', data.video_url); } else { $(this).attr('src', '//' + data.video_url); } var video_type = 'video/mp4'; if(data.video_url.indexOf('mediaType=m3u8') > -1){ video_type = 'application/x-mpegURL'; } if (videojs != undefined) { videojs('#video_detail_play_'+i,{ muted:true, autoplay:false, sources:[{ src:data.video_url, type:video_type }] }) } } }); // 判断当前是否为微信 function is_weixin(){ var ua = navigator.userAgent.toLowerCase(); if(ua.match(/MicroMessenger/i) == "micromessenger") { return true }else{ return false } } } }); return false; } }); })(window,jQuery) }catch(e){try{console && console.log && console.log(e);}catch(e){}} })(window, $);
Otthon
Termékek
Rólunk
Hírek és események
Gyári bemutató
Lépjen kapcsolatba velünk
浙公网安备33028102001543号