// 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 Esports League has announced first details on when the 2020 Call of Duty League season will start.

The company said in a press release that the first season of the new Call of Duty League will begin on January 24, 2020. The Launch Weekend Event, which will feature the first Call of Duty Challengers Open Bracket event, will be hosted by Minnesota in Minneapolis Armory from Jan 24-26.

The press release says that this Launch Weekend will feature all 12 professional Call of Duty League teams competing alongside open bracket tournament that will take place. Spectator tickets and team passes will go on sale soon.

The event will be hosted by Minnesota Røkkr – the Call of Duty League team operated by WISE Ventures Esports, under ownership of the Wilf Family (owners of the Minnesota Vikings), and investor Gary Vaynerchuk – will feature all 12 professional Call of Duty League teams competing across three days. The opening weekend of the regular season will feature additional fan and player experiences to celebrate the launch of Activision Blizzard Esports’ highly anticipated new city-based league.

“We are thrilled with the continued growth of the Call of Duty esports footprint as an international, city-based league with 12 teams in 4 countries, all of which deliver epically entertaining competition to millions of fans around the world,” said Bobby Kotick, CEO of Activision Blizzard. “Building on our city-based model’s success in esports first established by the Overwatch League, we are excited to unite the historic passion for the Call of Duty franchise with city-based fandom to create a league to rival the very best leagues in traditional sports in recognizing, celebrating and rewarding our players.”

Launch Weekend will also feature the season’s first Call of Duty Challengers™ Open, where amateur players from around the world can compete as teams in an open bracket tournament format. Beginning in November, Call of Duty Challengers competitors will begin battling via online ladders and tournaments for their share of an overall dedicated prize pool of more than $1 million during the 2020 season. Challengers team passes for Launch Weekend will go on sale in early December.

“We are thrilled to debut the Call of Duty League in Minnesota in partnership with the Wilf Family and everyone at WISE Ventures,” said Johanna Faries, Commissioner of the Call of Duty League. “Bringing together all 12 pro teams and the amateur community together for this special moment will usher in a new era for Call of Duty esports.”

“It is an honor to host the inaugural weekend of the Call of Duty League and welcome our ownership partners, players, and most importantly, our fans,” said Jonathan Wilf, President and Ownership Partner of WISE Ventures Esports. “We have been craving an esports event of this caliber in Minneapolis-St. Paul. With the success this community has in hosting world class events, we are excited to put on an incredible fan experience to launch the Call of Duty League.”

More details are expected to be announced for this event as the date draws closer.

comments below