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

The first DLC Pack for Call of Duty: WWII, The Resistance, is available now on PS4, with other platforms release to follow.

The Resistance DLC includes 3 multiplayer maps, — including a remake of Call of Duty: MW3’s Resistance — 1 new War Operation, and the next chapter of the Nazi Zombies experience — The Darkest Shore.

Multiplayer: 

  • Occupation: In this remake of the classic Call of Duty: Modern Warfare 3 Multiplayer map Resistance, players battle through the streets and shops of German-occupied Paris during WWII. Long side streets encourage mid-range combat, with nearby homes and storefronts lending defensive positions for ambush and recovery.
  • Valkyrie: Located in the Masurian Woods, East Prussia, this map was inspired by The Wolf’s Lair, Hitler’s Eastern-front headquarters during Operation Barbarossa, the Nazi invasion of the Soviet Union. This is a medium-sized map with gameplay focused around a dangerous center lane covered by multiple overwatch positions and mounted machine guns.
  • Anthropoid: Based in Prague, Czechoslovakia, this map is inspired by Operation Anthropoid, the famous assassination attempt on a high-ranking German officer during World War II. This map features a center lane divided by a river, with long-flanking paths that can be used by snipers for ranged attacks.

War:

  • Operation Intercept: Outside of St. Lo, France, our next War Mode experience leads us on an urban rescue mission to save Resistance fighters being transported by train. The first objective on the Allied side is freeing the fighters, followed by the destruction of key communication equipment, and ending with stopping a train.

Gameplay Trailer:


Zombies:

  • The Darkest Shore: The Darkest Shore follows our heroes into the next chapter of their dangerous journey. Only days after the horrific disaster of Mittelburg, the crew has received intel that suggests Doktor Straub is on an island just north of Germany. Blanketed in fog, this island is surrounded by Nazi air and sea power – and crawling with the Undead. Marie, Drostan, Olivia, and Jefferson will need to battle all this and more to uncover the mysteries hidden within the Darkest Shore.

Zombies Trailer:


Behind the Scenes Trailer:


Call of Duty: WWII The Resistance DLC Pack 1 is available now on PlayStation 4 and is coming soon to Xbox One and PC. Stay tuned for more info on the release date for Xbox One and PC.

Call of Duty: WWII The Resistance DLC Pack 1 is available separately for $14.99 or is included with the Call of Duty: WWII Season Pass, which gives you access to all four DLC Packs coming in 2018 for Call of Duty: WWII.

comments below