// 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 the Washington Post today that two more spots for the Call of Duty 2020 League have been purchased.

The company revealed that there will be a second Los Angeles spot in the League, which is purchased by Kroenke Sports and Entertainment company, which is the ownership group of the NFL Los Angeles Rams and English Premier team Arsenal. Kroenke Group also are the ownership behind the Overwatch League team, Los Angeles Gladiators.

In addition, the company announced that Misfits Gaming will be acquiring the Florida spot for the 2020 Call of Duty League. Misfits also own the Florida Mayhem Overwatch League team.

“Call of Duty is one of the most impactful titles in esports and we’re excited to take it to the next level with the new league,” said CEO and co-founder of Misfits Gaming Ben Spoont.

This brings the total number of teams announced for the league to 9. These two teams join the previously announced teams of New York, Toronto, Paris, Dallas, Atlanta, Los Angeles and Minnesota.

“Both ownership groups have a shared commitment to the growth of esports and building professional teams in their markets that home fans can be proud of and rally behind in the new city-based format,” said Johanna Faries, commissioner of Call of Duty esports.

The 2020 Call of Duty League is expected to adopt the Overwatch League format with home and away games, as players and teams will travel to the cities to compete during homestead style weekends for the new season.

More details on the 2020 Call of Duty League are expected to be announced over the coming months as the start of the league draws closer.

Activision just concluded the 2019 Call of Duty esports season with the Call of Duty World League Championship event, which will be the last traditional Champs event for Call of Duty. eUnited took home the trophy with $800,000.

Photo: SCUF

comments below