stream_name = Object.keys(streams)[0]; var live_host = streams[stream_name].cdnlist[0]; src = 'http://' + live_host + '/channels/' + channelInfo.customer_name + '/' + channelInfo.channel_name + '/m3u8:' + stream_name; //alert(src); jQuery('#player').html(''); } }) } else { var htmlVal = ''; jQuery('#player').html(htmlVal); } } function newPagePop(domId, para, width, height, Skin_ID1, e) { //生成弹窗播放器 Skin_ID = Skin_ID1; var flashvars = ''; if (e != undefined) { flashvars = e.replace(',', '&'); } var htmlVal = ''; jQuery('#player').html(htmlVal); } function newPage() { //弹窗 var vid = jQuery('object').attr('vid'); var swf = document.getElementById("player_area"); //var str = swf.cookieAs(); para = 'Video_ID=' + Video_ID + ''; //setCookie(str); new_window_handle = window.open('', 'player_area', 'height=410px, width=640px, top=0, left=0, resizable=yes, location=yes, status=no'); } function oldPage() { //关闭小窗口后,调用之前的页面 var swf = null; var str = ''; try { swf = document.getElementById('' + player_area + '_embed'); str = swf.cookieAs(); swf.playcookie(); } catch (e) { swf = document.getElementById(player_area); str = swf.cookieAs(); swf.playcookie(); } } function setCookie(str) { //alert(jQuery.cookie(para)); if (jQuery.cookie(para) == null) { jQuery.cookie(para, '{"pauseTime":0}', { expires: 7, path: '/' }); } else { jQuery.cookie(para, str, { expires: 7, path: '/' }); } } function getCookie() { //获取cookie return jQuery.cookie(para); } window.onbeforeunload = function() { //页面关闭的时候,存储当前cookies var swf = null; var str = ''; try { swf = document.getElementById(player_area + '_embed'); str = swf.cookieAs(); } catch (e) { swf = document.getElementById(player_area); str = swf.cookieAs(); } if (swf.playStartAD() === false) { setCookie(str); window.parent.opener.oldPage(); } } function canSkipAd() { return "true"; } //刷新缓存 jQuery(function() { random = Math.random(); jQuery('script').attr('random', random); })

《快乐汉语桥》MV