// 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); }; });

On December 7, Call of Duty Black Ops 4’s competitive season starts in full swing at CWL Las Vegas, presented by PlayStation 4. With a prize pool of $250,000, players and fans should be prepared for some truly intense match-ups. Whether you’re sitting on the sidelines, or leading your team to victory, we got everything you need to know to get ready for this weekend. 

Teams/Pools:

Pool A: 

  • 100 Thieves
  • eUnited
  • Team Reciprocity
  • Mindfreak
  • Open Bracket Team

Pool B:

  • Luminosity Gaming
  • Red Reserve
  • Evil Geniuses
  • UYU
  • Open Bracket Team

Pool C: 

  • FaZe Clan
  • Team Envy
  • Team Madcat
  • Str8 Rippin
  • Open Bracket Team

Pool D:

  • Splyce
  • OpTic Gaming
  • G2
  • Pittsburgh Knights
  • Open Bracket Team

Start Times:

Between December 7 – December 9 competitive multiplayer will played.

Matches begin at these times on each day:

  • December 7 – 2PM PST
  • December 8 – 10AM PST
  • December 9 – 10AM PST

Friday, December 7 – DAY 1 Schedule:

Watch Live:

You’ll be able to watch the action on Call of Duty’s Twitch channel embed here:


MLG will also be hosting the tournament with additional Bravo, Charlie, and Delta streams that cover all the other teams not featured on the main channel. There is also an open channel for players to watch the Open Bracket games. You can watch all of the streams here.

Be sure to follow us on Twitter for the latest CWL updates!

comments below