// 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 fourth and final DLC Pack for Call of Duty: Black Ops 3, Salvation, is available on October 6th on Xbox One and PC! Salvation brings four new multiplayer maps and the epic ending to the Zombies Origin Saga.

Multiplayer Maps:

  • Citadel: Once home to a powerful medieval army, this ancient castle now sits broken and abandoned. Tight corners force close-quarters engagements, while the moat and drawbridge allows for unique player movement opportunities in this mid-sized map. The last trespassers didn’t make it out alive – maybe you’ll have a better shot.
  • Micro: What’s better than a BBQ on a hot summer day? A miniaturized war zone that takes place on a well-stocked family picnic table, that’s what! Navigate this bite-size battlefield for a larger-than-life experience.
  • Outlaw: Gear up for a showdown in Outlaw; a western-style re-imagining of the fan favorite map Standoff from Call of Duty®: Black Ops II. This rough-and-tough medium-sized map brings classic engagements, flanking routes and strategic positions for long and medium ranged combat.
  • Rupture: The Call of Duty®: World at War classic Outskirts is re-imagined as a high-tech facility, designed by a futuristic society desperate to repair the Earth’s atmosphere.

MP Trailer:


Zombies:

  • Salvation features Revelations, the long-awaited final chapter in the Origins Zombies saga. In Revelations, we meet up with the Origins characters after they’ve taken an epic journey through space and time – all of their struggles lead to this very moment. In this, the final chapter of the Zombies experience, Richtofen, Dempsey, Takeo, and Nikolai finally come face to face with the mysterious Doctor Monty in The House. Confronted by an ancient evil, our heroes must fight the zombie horde once more in the final battle to save their immortal souls. Watch the prologue trailer here.

Gameplay Trailer:


Call of Duty: Black Ops 3 Salvation DLC Pack 4 is available now on PlayStation 4 and is coming October 6 to Xbox One and PC**.

Salvation DLC Pack 4 is included with the Season Pass or can be bought separately** for $14.99. Salvation DLC content not available on PS3 or Xbox 360.

**PC players: DLC Map Packs for Call of Duty: Black Ops 3 are only available with the purchase of the Season Pass. DLC Packs are not available for individual purchase. 

comments below