// 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 Blizzard has announced (via Washington Post) that the inaugural season of the 2020 Call of Duty League will feature a total of 12 teams.

Over the past few months, the company has been building out the new Call of Duty League and they have confirmed now that the 12 teams that have been announced are the teams that will be there for Season 1.

“Our goal for the future of Call of Duty Esports was to partner with ownership groups who are committed to bringing the next professional sports teams to their cities and building a community of home market fans. We have found those partners and the 2020 Call of Duty Esports League is officially locked with 12 teams,” said Bobby Kotick, Chief Executive Officer of Activision Blizzard. “We are proud to select the best 12 teams from 11 markets and four countries that will represent Call of Duty Esports and bring epically entertaining competition to millions of fans around the world.”

The company has yet to announce the details on the name of the League or when it will begin beyond saying early 2020.

Kotick confirmed that more than 12 teams were interested in the league, but they decided to cap it at 12 for the first season.

“We just like the symmetry, first of all, with how Overwatch League had done in its first year and we really wanted to focus on North America and Europe to start and really grow from there,” Johanna Faries, commissioner of the new Call of Duty league, said in a phone interview.

“I feel like it was a really nice blend and balance of operational know-how from an Overwatch League perspective, know-how from a Call of Duty esports perspective and then know-how from a traditional sports background,” said Faries.

Here’s the 12 teams in the Season for 2020:

Many traditional Call of Duty teams will not have a spot in the League, including FaZe Clan and 100 Thieves. 100 Thieves’ CEO Nadeshot announced that their company did not want to invest into the League and have to create a new brand.

Stay tuned for the latest 2020 Call of Duty League news.

comments below