// initialize jwplayer var playerInstance = jwplayer('player');// player dom elements var playerContainerEl = document.querySelector('.player-container');// returns video player position from top of document function getElementOffsetTop(el) { var boundingClientRect = el.getBoundingClientRect(); var bodyEl = document.body; var docEl = document.documentElement; var scrollTop = window.pageYOffset || docEl.scrollTop || bodyEl.scrollTop; var clientTop = docEl.clientTop || bodyEl.clientTop || 0; return Math.round(boundingClientRect.top + scrollTop - clientTop); }// returns the current y scroll position function getScrollTop() { var docEl = document.documentElement; return (window.pageYOffset || docEl.scrollTop) - (docEl.clientTop || 0); }// configure jwplayer instance playerInstance.setup({ autostart: true, playlist: 'https://cdn.jwplayer.com/v2/playlists/mYdavspX', primary: 'html5', setFullscreen: true, width: '100%' });// when jwplayer instance is ready playerInstance.on('ready', function() { var config = playerInstance.getConfig(); var utils = playerInstance.utils; // get height of player element var playerHeight = config.containerHeight; // flag determining whether close has been clicked var closed = true; // CHANGED // flag determing whether player is playing var playing = false; // ADDED // eventhandler for when close button is being pressed document.getElementsByClassName('icon-close')[0].addEventListener('click', () => { closed = true; onScrollViewHandler(); }); playerInstance.on('play', function() { closed = false; playing = true; // ADDED }).on('pause', function () { playing = false; // ADDED }).on('adPlay', function() { closed = false; // ADDED playing = true; // ADDED }).on('adPause', function() { playing = false; // ADDED });// get player element position from top of document var playerOffsetTop = getElementOffsetTop(playerContainerEl);// set player container to match height of actual video element playerContainerEl.style.height = playerHeight + 'px';// below we handle window scroll event without killing performance function onScrollViewHandler() { var minimized = getScrollTop() >= playerOffsetTop;if (closed && minimized) { minimized = false; jwplayer().pause(); playing = false; // ADDED } else if (!minimized && !playing) { closed = true; // ADDED } utils.toggleClass(playerContainerEl, 'player-minimize', minimized); // update the player's size so the controls are adjusted playerInstance.resize(); }// namespace for whether or not we are waiting for setTimeout() to finish var isScrollTimeout = false;// window onscroll event handler window.onscroll = function() { // skip if we're waiting on a scroll update timeout to finish if (isScrollTimeout) return; // flag that a new timeout will begin isScrollTimeout = true; // otherwise, call scroll event view handler onScrollViewHandler(); // set new timeout setTimeout(function() { // reset timeout flag to false (no longer waiting) isScrollTimeout = false; }, 80); };});

Activision continues to add more sponsors for the 2019 Call of Duty World League, as the company today announced a new TV sponsor for the 2019 Season.

TCL will be the official TV sponsor for the season and the presenting partner for the “Hot Mic” MLG series that Activision does weekly. Activision says the first episode of Hot Mic for this season will debut next week with the Pro League Qualifiers event.

“TCL is excited to strengthen and reaffirm our commitment to gaming by continuing our partnership with the Call of Duty World League,” said Chris Larson, Senior Vice President, TCL. “With our award-winning 6-Series earning a reputation for premium picture and ultra-low input lag to allow the best possible gameplay, esports remains incredibly important to TCL. Being the official TV of the Call of Duty World League, TCL will continue to put gamers closer than ever to their entertainment and give them the most premium experience. We look forward to being a part of this season, while providing fans the opportunity to view all the action on our 6-Series TV.”

As an official partner, TCL will be featured in tournament broadcasts, as well as have branding in original Call of Duty World League programming. TCL will also engage with fans through on-site gaming lounges at Fort Worth, TX, Anaheim, CA, and CWL Finals, as well as the Call of Duty World Championship in August. In addition, TCL will have a booth in all four tournament locations showcasing televisions for competition playback allowing fans to watch and interact with TCL’s latest products. Technology demonstrations, giveaways, and more will enhance the events for additional fan excitement. Finally, TCL is proud to be the presenting sponsor of “Hot Mic” with CWL talent Clint “Maven” Evans. A weekly conversation giving professional players an opportunity to let their personalities shine, “Hot Mic” is a high energy preview show for the Call of Duty World League.

“Call of Duty® World League continues to grow, and we’re excited to welcome back TCL as a sponsor of the league in 2019,” said Brandon Snow, Senior Vice President, Chief Revenue Officer of Activision Blizzard Esports Leagues. “CWL Las Vegas, our first event of this season, was our biggest start to a new season and the highest viewed CWL open event ever. We look forward to working alongside sponsors like TCL to help propel Call of Duty esports even further and provide fans with an unmatched experience both online and in person.”

Activision announced late last year three sponsors for the season, including ASTRO Gaming as the headset sponsor, SCUF Gaming as the controller sponsor, and BENQ as the official monitor of the CWL.

The CWL Season continues on January 16 with the Pro League Qualifiers. More information on the event is available here.

comments below