The new type of glass also has a "black face" as soon as it's tempered.

Tencent Digital (compilation: Mi Ke) is the greatest invention in the field of eyeglasses. It can have both the effect of sunglasses during the day and normal glasses in the evening. So if such technology can be used in the glass in our room, can we not use curtains? Now a team of engineers from MIT has developed this technology.

Researchers have invented a glass that is injected into an electrochromic material that changes color when it encounters an electric current. If a transparent glass passes through it, it immediately turns black.

Responsible for material color change is a sponge-like organic frame MOF that can perform high-speed electron and ion changes. This MOF can quickly change that color when there is a current passing through it. Once black, the current is cut off automatically and the entire glass stays black.

Mircea Dinca, head of research at MIT, said that in the future, this research can save household power consumption by changing the intake of sunlight and achieve very significant energy savings.

Var related_video_info = { vid: 'e0321uxufzl', cid: '', url: 'http://v.qq.com/page/e/z/l/e0321uxufzl.html', pic: 'http://vpic. Video.qq.com/4196978054/e0321uxufzl_ori_1.jpg', title: 'Turning ordinary glass into a super luxury crystal chandeliers requires only the hand of a craft' };.rv-root-v2{font-family:"\5FAE\8F6F \96C5\9ED1",sans-serif;color:000}.rv-root-v2 a{text-decoration:none;color:000}.rv-root-v2 h1,.rv-root-v2 h2,.rv -root-v2 h3,.rv-root-v2 ol,.rv-root-v2 p,.rv-root-v2 ul{display:block;padding:0;margin:0}.rv-root-v2 img{ Border:0}.rv-root-v2 .rv-cf:after,.rv-root-v2 .rv-cf:before{content:" ";display:table}.rv-root-v2 .rv-cf: After{clear:both}.rv-root-v2 .rv-cf{zoom:1}.rv-root-v2 .rv-top{height:40px;line-height:40px;background-color:f3f3f3}.rv -root-v2 .rv-top .rv-fold-btn{float:right;padding-left:20px;margin-right:16px;font-size:14px;background-image:url(http://mat1.gtimg .com/news/dc/images/fold.png);background-position:left center;background-repeat:no-repeat}.rv-root-v2 .rv-top .rv-autoplay{float:right;widt h:110px;margin-right:16px}.rv-root-v2 .rv-top .rv-autoplay span{font-size:14px;float:right}.rv-root-v2 .rv-top .rv-autoplay a{float:right;display:block;width:32px;height:18px;padding:2px;margin-top:10px;margin-left:12px;border-radius:10px;font-size:0;text-indent: -9999px;cursor:pointer;background-color:CCC;transition:background .3s ease-out}.rv-root-v2 .rv-top .rv-autoplay ai{display:block;width:18px;height:18px; Border-radius: 50%;background-color:fff;margin-left:0;box-shadow:1px 1px 3px rgba(0,0,0,.6);transition:all .3s ease-out}.rv- Root-v2 .rv-top .rv-autoplay a:hover{background-color:d9d9d9}.rv-root-v2 .rv-top .rv-autoplay a.enabled{background-color:006cb7}.rv-root- V2 .rv-top .rv-autoplay a.enabled i{margin-left:14px}.rv-root-v2 .rv-top .rv-autoplay a.enabled:hover{background-color:007bd1}.rv-root -v2 .rv-top .rv-autoplay a:active i{box-shadow:none}.rv-root-v2 .rv-top .rv-title{overflow:hidden}.rv-root-v2 .rv-top .rv-title a{display:block;font-size:18px;font-weight:400;text-indent:12px ;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:000}.rv-root-v2 .rv-top .rv-title a:hover{color:cd0000;text-decoration:underline}. Rv-root-v2 .rv-middle .rv-player{position:relative;min-height:360px;padding-bottom:18px}.rv-root-v2 .rv-middle .rv-player .rv-player-adjust -img{width:100%;visibility:hidden;font-size:0}.rv-root-v2 .rv-middle .rv-player .rv-player-adjust-img img{width:100%;vertical-align :top;max-width:2000px!important;min-width:0!important}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap{position:absolute;width:100%;height :100%;top:0;left:0;background-color:000;box-shadow:inset 0 0 20px rgba(0,0,0,.6)}.rv-root-v2 .rv-middle .rv -player .rv-player-wrap .rv-player-mod{position:relative;width:100%;height:100%}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap . Rv-player-mod .rv-player-loading{width:100%;height:100%;text-align:center;color:999;font-family:verdana,arial,sans-serif}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mod .tvp_titles{display: None}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl{display:none;position:absolute;right:0;z-index:99;bottom :18px;width:30px}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-close,.rv-root-v2 .rv-middle .rv -player .rv-player-wrap .rv-player-mini-ctrl-mute,.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-resize{ Display:block;margin-top:3px;width:30px;height:30px;line-height:30px;background-color:000;background-color:rgba(0,0,0,.6);background-image: Url(http://mat1.gtimg.com/news/dc/images/rv_mini_sprites_v2.png);background-repeat:no-repeat;text-align:center}.rv-root-v2 .rv-middle .rv- Player .rv-player-wrap .rv-player-mini-ctrl-close:hover,.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-mute :hover,.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-resize:hover{color:FFF;background-color:000;background-color: Rgba(0,0,0,.9)}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-play Er-mini-ctrl-mute,.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-mute.mute-off{background-position:0 -150px }.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-mute.mute-on{background-position:0 -180px}.rv-root-v2 .rv-middle .rv-player .rv-player-wrap .rv-player-mini-ctrl-close{background-position:0 0}.rv-root-v2 .rv-middle .rv-player .rv-player -wrap .rv-player-mini-ctrl-resize{background-position:0 -30px}.rv-root-v2 .rv-middle .rv-player .rv-player-mini{position:fixed;width:270px; Height:170px;left:0;bottom:0;top:auto;z-index:99;box-shadow:0 0 3px rgba(0,0,0,.3)}.rv-root-v2 .rv- Middle .rv-player .rv-player-mini .rv-player-mini-ctrl{display:block}@media only screen and (min-width:1300px){.rv-root-v2 .rv-middle .rv- Player .rv-player-mini.rv-player-mini-sp1{left:50%;margin-left:-692px}}.rv-root-v2 .rv-middle .rv-player .rv-player-mini. Rv-player-mini-big{width:640px;height:378px}.rv-root-v2 .rv-middle .rv-player .rv-player-mini.rv-player-mini-big .rv-player-mini-ctrl-resize{background-position:0 -60px}.rv-root-v2 .rv-middle .rv-playlist{height:100px;background-color:2f2f2f}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl{position:relative;width:100%;height:0;z-index:2}.rv-root-v2 .rv-middle .rv-playlist .rv -playlist-ctrl a{display:block;position:absolute;top:0;width:17px;height:100px;line-height:100px;font-size:14px;font-weight:700;font-family:NanumMyeongjo, "\5B8B\4F53", sans-serif;text-align:center;color:a3a3a3;background-color:2f2f2f;background-color:rgba(47,47,47,.8);cursor:pointer}.rv- Root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl a:hover{background-color:494949;background-color:rgba(73,73,73,.8)}.rv-root-v2 . Rv-middle .rv-playlist .rv-playlist-ctrl a.disabled{cursor:not-allowed;color:505050}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-ctrl a.disabled :hover{background-color:2f2f2f;background-color:rgba(47,47,47,.8);box-shadow:none}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist- Ctrl .prev{left:0}.rv-root-v2 .rv- Middle .rv-playlist .rv-playlist-ctrl .next{right:0}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap{height:100px;width:100%;overflow: Hidden;position:relative;z-index:1}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller{height:130px;width:100%;overflow- y:hidden;overflow-x:scroll;-webkit-overflow-scrolling:touch}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist -list{width:9999px;padding:0 17px;list-style:none}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist- List li{display:block;float:left}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a{display:block ;position:relative;width:160px;height:90px;padding:5px;cursor:pointer}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv -playlist-list li a img{width:100%;height:100%;opacity:0;transition:opacity .3s ease-out;vertical-align:top}.rv-root-v2 .rv-midd Le .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a div{position:absolute;width:100%;left:0;bottom:0;font-size:12px ;line-height:18px}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a div span{display:block;height :18px;margin:5px;padding:5px 10px 2px;overflow:hidden;font-family:Arial,sans-serif;color:ababab;background-color:rgba(0,0,0,.8);-ms- Filter:"progid:DXImageTransform.Microsoft.gradient(GradientType=1, StartColorStr='CC000000', EndColorStr='CC000000')";filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr='CC000000', EndColorStr ='CC000000');-webkit-transition:all .2s ease-out;-moz-transition:all .2s ease-out;-ms-transition:all .2s ease-out;-o-transition:all .2s Ease-out;transition:all .2s ease-out}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a div span :not([dummy]){filter:progid:DXImageTransform.Microsoft.Gradient(enabled=' False')}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a.current{background:101010}.rv-root -v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a.current div span{color:ff6d1a}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist-wrap .rv-playlist-scroller ol.rv-playlist-list li a:hover{background:252525}.rv-root-v2 .rv-middle .rv-playlist .rv-playlist -wrap .rv-playlist-scroller ol.rv-playlist-list li a:hover div span{height:36px}@media only screen and (min-width:1260px){.rv-adjust-wide-article{width: 895px;margin-left:-97px}}

loading...
Window.dc_related_video={},function(i){i.__author__="jamieyan",i.__version__="2.0.0",i.modName="dc_related_video",i.config={},i.sign={ },i.cache={},i.videos=[],i.dom={},i.control={},i.tvp_player_obj=null}(window.dc_related_video),function(i){var t= {},e=function(i,t){var e=document.head||document.getElementsByTagName("head")[0]||document.documentElement,n=document.createElement("script"),o= !1;n.async=!0,n.src=i,n.onload=n.onreadystatechange=function(){o||n.readyState&&!/loaded|complete/.test(n.readyState)||( o=!0,n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),n=null,"function"==typeof t&&t())},e.insertBefore(n,e. firstChild)},n=function(i){i=i||function(){};var t=!1;if("function"==typeof window.jQuery){var n=window.jQuery(). Jquery;if("string"==typeof n){var o=n.split(".");3===o.length&&"1"===o[0]&&parseInt(o[1],10 )>10&&(t=!0)}}t?i(window.jQuery):e("http://mat1.gtimg.com/libs/jquery/1.12.0/jquery.min.js",function( ){i(window.jQuery.noConflict(!0))})},o=function( i) {if(window.tvp)i(window.tvp);else{var t="http://imgcache.qq.com/tencentvideo_v1/tvp/js/tvp.player_v2";t+=window.jQuery?" _jq.js":".js",e(t,function(){i(window.tvp)})}},a=function(){var i=function(){return i.get.apply(i ,arguments)},t=i.utils={isArray:Array.isArray||function(i){return"[object Array]"===Object.prototype.toString.call(i)},isPlainObject:function( i) {return!!i&&"[object Object]"===Object.prototype.toString.call(i)},toArray:function(i){return Array.prototype.slice.call(i)},getKeys: Object.keys||function(i){var t=[],e="";for(e in i)i.hasOwnProperty(e)&&t.push(e);return t},escape:function(i) {return String(i).replace(/[,;" \\=\s%]/g,function(i){return encodeURIComponent(i)})},retrieve:function(i,t){return null= ==i?t:i}};return i.defaults={},i.expiresMultiplier=86400,i.set=function(i,e,n){if(t.isPlainObject(i))for(var o In i)i.hasOwnProperty(o)&&this.set(o,i[o],e);else{n=t.isPlainObject(n)?n:{expires:n};var a=void 0!== N.expires?n.expires:this.defaults.expires||"",l=typeof a;"string "===l&&""!!==a?a=new Date(a):"number"===l&&(a=new Date(+new Date+1e3this.expiresMultipliera)),""!==a&&" toGMTString" in a&&(a=";expires="+a.toGMTString());var r=n.path||this.defaults.path;r=r?";path="+r:"";var s=n.domain||this.defaults.domain;s=s?";domain="+s:"";var u=n.secure||this.defaults.secure?";secure":""; Document.cookie=t.escape(i)+"="+t.escape(e)+a+r+s+u}return this},i.remove=function(i){i=t.isArray(i )?i:t.toArray(arguments);for(var e=0,n=i.length;n>e;e++)this.set(i[e],"",-1);return this}, I.empty=function(){return this.remove(t.getKeys(this.all()))},i.get=function(i,e){e=e||void 0;var n=this. All();if(t.isArray(i)){for(var o={},a=0,l=i.length;l>a;a++){var r=i[a];o[r ]=t.retrieve(n[r],e)}return o}return t.retrieve(n[i],e)},i.all=function(){if(""===document.cookie) Return{};for(var i=document.cookie.split("; "),t={},e=0,n=i.length;n>e;e++){var o,a,l=i [e].split("=");try{o=decodeURIComponent(l[0])}catch(r){o=l[0]}try{a=decodeURIComponent(l[1])}catch(r ){a=l[1]}t[o]=a}return t},i.enabled=f Unction(){if(navigator.cookieEnabled)return!0;var t="_"===i.set("_","_").get("_");return i.remove("_ "),t},i}(),l={};l.isTransitionSupport=function(){var i=document.createElement("p").style,t="transition";if("string"= =typeof i[t])return!0;var e=["Moz","webkit","Webkit","O","ms"];t=t.charAt(0).toUpperCase()+t .substr(1);for(var n=0,o=e.length;o>n;n+=1)if("string"==typeof i[e[n]+t])return!0;return !1},l.isBorderRadiusSupport="string"==typeof document.createElement("p").style.borderRadius,l.isIe6orLower=function(){var i=document.createElement("div");return i. innerHTML="",!!i.getElementsByTagName("i").length};var r=function(i,t){for(var e=0,n="",o=0;o128?e+=2 :e++,n+=i.charAt(o),e>=t)return n;return n},s=function(i,t){var e,n,o,a,l,r,s=u( Function(){l=a=!1},t);return function(){e=this,n=arguments;var u=function(){o=null,l&&(r=i.apply(e,n )),s()};return o||(o=setTimeout(u,t)),a?l=!0:(a=!0,r=i.apply(e,n)),s( },r}},u=function(i,t,e){var n,o;return function(){var a=this,l=arguments,r=function(){n=nul l,e||(o=i.apply(a,l))},s=e&&n;return clearTimeout(n),n=setTimeout(r,t),s&&(o=i.apply(a, l)), o}},d=function(){"on"===window.related_video_debug&&window.console&&console.log("[related_video_log] ",arguments)};t={getScript:e,loadJquery:n,loadTvp :o,cookie:a,browser:l,cutstr2:r,throttle:s,debounce:u,debug_log:d},i.utils=t}(window.dc_related_video),function(i){var t={} ,e=function(t,e){var n=i.libs.jQuery;return e=e||n.noop,"string"!=typeof t?void e(null):void n.ajax({method :"GET",url:"http://data.video.qq.com/fcgi-bin/data",data:{tid:"25",idlist:t,appid:"10001009",appkey:"c5a3e1529a7ba805 ",otype:"json"},dataType:"jsonp",cache:!0,scriptCharset:"utf-8"}).done(function(i){if(!i||i.errorno)return void e (null);var t=[],o=i.results[0].fields,a=o.c_vids||o.c_vclips||[];n.each(a,function(i,e){t .push({vid:e.c_vid,title:e.c_title,pic:e.c_pic_160_90,url:e.c_play_url})}),e(t)}).fail(function(){e(null)} }},n=function(t,e,n){var o=i.libs.jQuery;return n=n||o.noop,e?(t=t||"",void o.ajax({ Method:"GET",url:"h Ttp://like.video.qq.com/fcgi-bin/like",data:{msgtype:"122",uin:t,id:e,play:"2",pidx:"0",size: "11",otype:"json",tablist:"9"},dataType:"jsonp",cache:!0,scriptCharset:"utf-8"}).done(function(i){if(!i| |i.errmsg||!!i.tablist)return void n(null);var t=[];o.each(i.tablist[0].cover_info,function(i,e){t.push({vid :e.id,title:e.title,pic:e.picurl,url:e.playurl})}),n(t)}).fail(function(){n(null)})):void n (null)},o=i.utils.cookie,a={_configName:"autoplay_cookie",_config:null,_set:function(t){this._config=i.config[this._configName],window.localStorage&&localStorage. setItem(this._config.key,t),o.set(this._config.key,t,{expires:this._config.expires,domain:this._config.domain,path:this._config.path})} ,get:function(){if(this._config=i.config[this._configName],window.localStorage){var t=localStorage.getItem(this._config.key);if(t) return t}return o .get(this._config.key)},on:function(){this._set("1")},off:function(){this._set("0")}},l={_configName:" Playing_cookie",_config:null,_set:function(t){this._co Nfig=i.config[this._configName],o.set(this._config.key,t,{expires:this._config.expires(),domain:this._config.domain,path:this._config.path} }},get:function(){return this._config=i.config[this._configName],o.get(this._config.key)},on:function(){this._set("1")} ,off:function(){this._set("0")}},r={_configName:"mini_unmute",_config:null,_set:function(t){this._config=i.config[this._configName] ,o.set(this._config.key,t,{expires:this._config.expires,domain:this._config.domain,path:this._config.path})},get:function(){return this. _config=i.config[this._configName],o.get(this._config.key)},on:function(){this._set("1")},off:function(){this._set(" 0")}},s={on:function(){window.dc_playing_sign||(window.dc_playing_sign={}),window.dc_playing_sign[i.modName]=!0},off:function(){window. Dc_playing_sign||(window.dc_playing_sign={}),window.dc_playing_sign[i.modName]=!1},isAnyonePlaying:function(){if(window.dc_playing_sign){for(var t in window.dc_playing_sign)if(t !==i.modName&&window.dc_playing_sign.hasOwnProp Erty(t)&&window.dc_playing_sign[t])return!0;return!1}return!1}},u={boss2619:function(t,e){var n=i.libs.jQuery,o=n. Param({BossId:"2619",CheckSum:"1312852225",sIp:"",iQQ:i.userinfo.qq||"",sOp:t||"",sDomain:window.location.hostname||" ",sUrl:window.location.href||""",sRef:window.document.referrer||"",vid:e||"",_dc:""+Math.random()});(new Image ).src="http://btrace.qq.com/kvcollect?"+o}};t={getVideoListByCoverId:e,getLikeVideoList:n,autoPlaySign:a,playingSign:l,playingGlobalSign:s,miniUnMuteSign:r, Trace:u},i.fn=t}(window.dc_related_video),function(i){var t={},e=!1;t.getPlayerSize=function(){return e?{width:i.dom .$player_mod.width(),height:i.dom.$player_mod.height()}:void 0},t.setPlayerModId=function(t){i.dom.$player_mod.attr("id",t) },t.setTitle=function(t,e){return i.dom.$title.html(t).attr("href",e)};var n=function(){var t="enabled", e=function(){i.dom.$autoplay_sw.attr("bosszone",function(){return o()?"bofang_button_close":"bofang_button_open"})},n=function(n){i.dom. $autoplay_sw[n?"addClass" :"removeClass"](t),e()},o=function(){return i.dom.$autoplay_sw.hasClass(t)},a=function(n){var a=i.dom.$autoplay_sw ;a.on("click",function(){a.toggleClass(t),"function"==typeof n&&n.call(null,o()),e()})};return{bind:a, setStatus:n,getStatus:o,updateBosszone:e}}();t.autoPlaySW=n;var o=function(){var t,e,n,o,a,l,r=function(){p( ), i.dom.$playlist_next.on("click",function(){c("forward")}),i.dom.$playlist_prev.on("click",function(){c("backward" }}), i.dom.$playlist_scol.on("scroll",i.utils.throttle(function(){var e=i.dom.$playlist_scol.scrollLeft(),n="disabled";0== =e||e===a||0>=a?(0===e&&i.dom.$playlist_prev.addClass(n),(e===a||0>=a)&&i.dom. $playlist_next.addClass(n)):i.dom.$playlist_ctrl.removeClass(n),-1!==navigator.appVersion.indexOf("MSIE 7.")&&t.css("visibility","inherit") .css("visibility","visible")},50)),i.dom.$playlist_scol.trigger("scroll")},s=function(t){i.dom.$playlist_scol.stop(). Animate({scrollLeft:parseInt(t,10)},500)},u=function(o){if(!(0>o||o>e-1)){var a=i.dom.$playlist_scol ;$item =t.filter(":eq("+o+")"),s(a.scrollLeft()+$item.position().left-a.width()/2+n/2),l=o }},d=function(i){var e="current";t.find("> a."+e).removeClass(e),t.filter(":eq("+i+")") .find("> a ").addClass(e)},c=function(t){var e,o=i.dom.$playlist_scol,l=o.scrollLeft(),r=Math.round(.7o .width());"forward"===t?e=l+r:"backward"===t&&(e=lr),n>e?e=0:e>an&&(e=a), s(e)},p=function(){t=i.dom.$playlist_list.find("> li"),e=t.length,n=t.filter(":eq(0)"). outerWidth(!0),o=i.dom.$playlist_scol.width()/n,i.dom.$playlist_list.css("width",en),a=i.dom.$playlist_list.outerWidth(!0 )-i.dom.$playlist_scol.width()};return{init:r,setCurrentToIdx:d,scrollToItemIdx:u,forward:function(){c("forward")},backward:function(){c( "backward")}, hide:function(){return i.dom.$playlist_node.slideUp(300)},update:p}}();t.playlist=o;var a=function(){var t, e=!1,n=function(){var t=i.libs.jQuery,e={};e.top=i.dom.$root.offset().top,e.btm=e.top+ I.dom.$root.height();var n={height:t(window).height(),scrollTop:t(window).scrollTop()},o=e.top>=n.scroll Top&&n.scrollTop+n.height>=e.top,a=e.btm>=n.scrollTop&&n.scrollTop+n.height>=e.btm,l=e.top=d;c?(s=0- r/2-i.dom.$player_wrap.width()-10,u="50%"):(s=0,u=0),i.dom.$player_wrap.css({"margin-left" :s,left:u})}}"1"!==i.fn.miniUnMuteSign.get()&&i.player.setFlashVolume(0)}i.player.resizePlayer(),i.dom.$player_wrap.css ("visibility","visible"),t=l}},100),l=function(){if(!i.utils.browser.isIe6orLower()){var t=i.libs.jQuery;t( Window).scroll(a),t(window).resize(a),i.dom.$player_mini_ctrl.on("click","a[data-action=close]",function(t){t.preventDefault (),e=!0,a(),i.player&&i.player.tvp_player_obj&&i.player.tvp_player_obj.pause&&i.player.tvp_player_obj.pause()}),i.dom.$player_mini_ctrl.on("click"," a[data-action=resize]",function(t){t.preventDefault(),i.dom.$player_wrap.toggleClass("rv-player-mini-big"),i.player.resizePlayer()}) ;var n=i.dom.$player_mini_ctrl.find("a[data-action=mute]"),o=function(){var t=i.player.getFlashVolume();"number"==typeof t? n.removeClass("mute-off mute-on").addClass(0===t?"mute-on ":"mute-off"):n.hide()};o(),n.click(function(){var t=0===i.player.getFlashVolume();i.player.setFlashVolume(t ?80:0,!0)}),i.player.bind("onvolumechange",function(){o(),i.sign.vol_change_by_prog||(i.player.getFlashVolume()>0?i.fn .miniUnMuteSign.on():i.fn.miniUnMuteSign.off())})}}; return {detectVisible:n,init:l}}();t.scrollPlay=a,t.init=function(){ Var t=i.libs.jQuery;i.dom.$root=t(".rv-js-root"),i.dom.$title=i.dom.$root.find(".rv-title a "),i.dom.$autoplay_sw=i.dom.$root.find(".rv-js-autoplay"),i.dom.$player_wrap=i.dom.$root.find(".rv-player -wrap"),i.dom.$player_mod=i.dom.$player_wrap.find(".rv-player-mod"),i.dom.$player_mini_ctrl=i.dom.$player_wrap.find(".rv -player-mini-ctrl"),i.dom.$playlist_node=i.dom.$root.find(".rv-playlist"),i.dom.$playlist_scol=i.dom.$playlist_node.find(" .rv-playlist-scroller"),i.dom.$playlist_list=i.dom.$playlist_node.find("ol.rv-playlist-list"),i.dom.$playlist_ctrl=i.dom.$playlist_node. Find(".rv-playlist-ctrl a"),i.dom.$playlist_prev=i.dom.$playlist_ctrl.filter(".pr Ev"),i.dom.$playlist_next=i.dom.$playlist_ctrl.filter(".next");var n=["nba"];window.ARTICLE_INFO&&~t.inArray(window.ARTICLE_INFO.sub_nav,n }&&(i.dom.$root.addClass("rv-adjust-wide-article"),t(window).resize(i.utils.throttle(function(){i.player&&i.player.resizePlayer&&i.player. resizePlayer()},50))),e=!0},i.ui=t}(window.dc_related_video),function(i){var t,e,n={},o={},a= {},l=function(){var i=function(i){return function(){for(var t=0;t=t&&t+518>i}function n(){e()&&!r&&(i .utils.loadTvp(l),r=!0)}var o=t;i.libs.$=i.libs.jQuery=t,i.utils.debug_log("jquery version is ",i.libs.$ ().jquery),i.userinfo={qq:i.utils.cookie.get("o_cookie")||null},i.config.autoplay_cookie={key:"aboutVideo_v",domain:".qq.com ",path:"/",expires:90},i.config.playing_cookie={key:"dc_vplaying",domain:".qq.com",path:"/",expires:function(){return new Date ((new Date).getTime()+72e5)}},i.config.mini_unmute={key:"rv_mini_unmute",domain:".qq.com",path:"/",expires:1},i. Sign.autoplay=function(){return window.preventAutoPlay===!0?!1:! 0===i.fn.playingGlobalSign.isAnyonePlaying()?!1:"0"===i.fn.autoPlaySign.get()?!1:!("1"===i.fn.playingSign. Get()&&!/\bQQBrowser/i.test(window.navigator.userAgent))}(),i.utils.debug_log("auto play sign: ",i.sign.autoplay),i.ui.init( );var a=function(t){if(t!==i.modName&&i.player.tvp_player_obj)if(i.sign.autoplay=!1,i.utils.debug_log("tring to pause by event... .),i.sign.playstatus&&"play"!==i.sign.playstatus)if("ad"===i.sign.playstatus){i.utils.debug_log("paused(stopvideo) by event" );try{i.player.tvp_player_obj.getPlayer().stopVideo()}catch(e){}}else{i.utils.debug_log("paused by event");try{i.player.tvp_player_obj.pause( }} catch(e){}}else"tostart"==t?i.player.tvp_player_obj.getPlayer().stopVideo():(i.utils.debug_log("will stop after __addlstart or playing"),i. sign.pauseWhenPlay=!0)},l=function(t){i.libs.tvp=t;var n="related_video_info";if(!window[n]||!window[n].vid)return void I.utils.debug_log("Error: related_video_info not found.");i.vinfo=window[n],i.sign.automute=function(){return!!win dow.isRelvideoMute}(),i.utils.debug_log("auto mute sign: ",i.sign.automute);var l="tvp-mod-player-"+i.vinfo.vid;i.ui.setPlayerModId (l), i.libs.$(window).on("video:pause",function(t,e){i.utils.debug_log("received custom event from ",e),a(e)}) ,i.config.tvp_player={modId:l,autoplay:i.sign.autoplay,loadingadAutoplay:window.preventAutoPlay===!0?!1:i.sign.autoplay,vodFlashSkin:"http://imgcache.qq .com/minivideo_v1/vd/res/skins/TencentPlayerMiniSkin.swf",pic:i.sign.autoplay?"":i.vinfo.pic,flashWmode:"transparent",vodFlashExtVars:{ptag:window.TEN_VIDEO_PTAG||" ",clientbar:0},plugins:{AppBanner:!1,AppRecommend:!1,AppFollow:!1}},i.player.playByVid(i.vinfo.vid),i.ui.setTitle(i.vinfo. Title,i.vinfo.url),i.sign.first_trace_reported=!1,i.player.bind(i.sign.autoplay?"onplay":"onplaying",function(){i.sign.first_trace_reported||i .fn.trace.boss2619(i.sign.autoplay?"first_auto":"first_click",i.vinfo.vid),i.sign.first_trace_reported=!0});var r=!1;i.player.bind ("onplaying",function(){r||i.ui.scrollPlay.init(), r=!0}),i.videos=[];var s=null,u=function(t){t||i.ui.playlist.hide(),s&&clearTimeout(s),i.videos.push( I.vinfo), o.each(t,function(t,e){e.vid!==i.vinfo.vid&&i.videos.push(e)}),i.utils.debug_log(i.videos); Var n="";o.each(i.videos,function(t,e){e.title.replace(/[^\x00-\xff]/gi,"").length>40?e.stitle =i.utils.cutstr2(e.title,40)+"...":e.stitle=e.title,n+="",n+=" ",n+=" ",n+="
",n+=" "+e.stitle+"",n+="
",n+=" ",n+=""}),i.dom.$playlist_list.html(n),i.ui.playlist.init();var a=function(t){if(t){var e,n;return o.each(i.videos,function(i,o){return o.vid===t?(e=o,n=i,!1):void 0}),e&&(e .idx=n),e}},l=function(t){if(!(0>t||t>i.videos.length-1)){var e=i.videos[t];i. player.playByVid(e.vid),i.ui.playlist.setCurrentToIdx(t),i.ui.playlist.scrollToItemIdx(t),i.ui.setTitle(e.title,e.url)}};i. Dom.$playlist_list.on("click","a[data-vid]",function(t){t.preventDefault();var e=o(this).attr("data-vid"),n= a(e);l(n.idx),i.fn.trace.boss2619("user_click",e)}),i.player.bind("ongetnext",function(t){i.utils.debug_log( "event: ongetnext");var n=a(t),o=n.idx+1,r=e();o

Source: digitaltrends

.wxdigi { padding:20px 0; border-top: 1px dotted DBDBDB; }

Posted on