// 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 and Infinity Ward have announced the first details on Season 1 of Call of Duty: Modern Warfare.

Infinity Ward is shifting to a Season structure for Call of Duty: Modern Warfare, as they have removed the Season Pass model for this year’s game.

Season 1 will officially begin on December 3 on PS4, Xbox One, and PC. Activision says that not all content in the graphic will be released on December 3. Note that some of this content may drop later than the Season One start date of December 3, and additional content may be added to Season One.

Here’s the high level overview of what’s coming throughout the course of Season 1:

  • Two New Operators: Mara and Nikto 
  • Teaser for a potential new equipment (Gas Barrel) 
  • New 6v6 MP Maps:
    • Crash – The iconic Call of Duty 4: Modern Warfare map has returned with all the flanking routes and action-packed rooftop encounters you remember.
    • Vacant – An abandoned office, previously visited in Call of Duty 4: Modern Warfare, leads to intense interior combat across the complex.
    • Shipment (6v6 Map & Gunfight Map) – The classic Call of Duty 4: Modern Warfare map where fast and frenetic action reigns supreme.
  • New Ground War Maps
    • Port – Battle across massive shipping crates, cranes, buildings and streets in this unique Ground War map experience.
  • New 2v2 Gunfight Maps
    • Cargo – An open-roof storage vessel for shipping containers, on docks of London.
    • Atrium – The centerpiece of a Verdansk palace, still intact despite the conflict raging nearby.
    • And more
  • New MP Modes:
    • Reinforce – A hybrid of Dom and S&D, a single-life mode with both teams competing for control of three flags.
    • Gunfight OSP – A tactically rich 2v2 mode with a twist: Begin with just your fists, and gather equipment as the match progresses.
    • Infected – It’s hunt or be hunted in this survival party game mode!
  • New Special Ops:
    • Bomb Squad – Forces still loyal to Barkov have planted explosives around the city of Al-Raab. You’re here to defuse the situation.
    • Grounded – Enemies have seized Barkov’s former airbase. Engage and eliminate them.
    • Pitch Black – Infiltrate Barkov’s former estate and recover all required intel before an exfill in a Tactical Rover.
    • Just Reward – Your squad targets the head of an enemy financial operation, hacking his data centers, and gaining intel.
    • And more
  • New Weapons
    • RAM-7 – Introducing a new fully automatic bullpup Assault Rifle with integrated picatinny rails at 3, 6, and 9 o’clock.
    • Holger-26 – LMG spec of the Holger model rifle, with integrated sight rail and drum magazine for additional ammunition-carrying capacity.

Season 1 of Modern Warfare also brings the brand new Battle Pass system with both a free and premium track for players to earn cosmetic content in the game. This is the new system which replaces Loot Boxes.

Activision says in a blog post that “everyone” can earn some free content including the base versions of the new weapons.

Every single member of the Modern Warfare community can earn some of the tiers within the forthcoming battle pass system, including cosmetic items and two new base weapons.

We will update as more information is announced on Season 1.

comments below