// 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 officially announced the third DLC Pack for Call of Duty: Infinite Warfare, Absolution. Absolution DLC Pack 3 will be available on July 6 on PlayStation 4, featuring four new multiplayer maps and an all new Zombies adventure.

“Our team couldn’t be more thrilled to introduce another wild, twisted zombies experience in Attack of the Radioactive Thing!, which continues the story and adds some awesome new gameplay,” said Dave Stohl, Studio Head of Infinity Ward. “For our multiplayer fans, we’re delivering four diverse maps that reward the different gameplay styles our community has embraced since the game launched last year. We can’t wait.”

Multiplayer Maps:

  • Ember – Located near an old town castle, Ember is a remake of Resistance from Call of Duty: Modern Warfare 3 featuring old world aesthetics retrofitted with modern technology. The surroundings include lava, gallows and a torture room, where players will want to stick close to their teammates.
  • Bermuda – A shantytown created around the remnants of a crashed ship, Bermuda allows players to duck, dive, and wall ride from the fish market to the lighthouse in this small to medium sized map that’s been water-wasted and sandblasted.
  • Premafrost – Set within the chill of a frozen city skyline, Permafrost lets players stick to the ground and pick their plan of attack in one of three main lanes. They will traverse the map, moving from street side to train station, and hobo village to wrecked theater house in this small, tight-quarters map.
  • Fore – In Fore, the only thing miniature about this large map is the golf courses players will be fighting in. Fore features great visual variety as players swing around the sights and sounds of areas that brandish magical forests, giant creamsicles, and elevated castle walls.

Zombies:

  • Attack of the Radioactive Thing – The next action-packed chapter of the Call of Duty: Infinite Warfare zombies experience, once again features the return of Willard Wyler, the enigmatic movie director villain portrayed with voice and likeness by Paul Reubens (Pee-wee’s Big Holiday, Gotham). Wyler has trapped the four protagonists inside an all-new horror film, set in the 1950s and in the style of the Creature Feature films of the era. Players will fight a new array of zombie enemies across a ravaged beach town where a government science experiment has transformed the residents into flesh-devouring zombies and introduced a new biological menace into the city. Additionally, horror movie icon Elvira, played with voice and likeness by Cassandra Peterson (Elvira: Mistress of the Dark, Elvira’s Movie Macabre), will help players survive and give them gameplay tips and side quests with her unique Elvira style. New weapons, traps and more will augment the hallmark Call of Duty action, with Seth Green (Robot Chicken, Austin Powers) as “the Scientist;” Ike Barinholtz (Neighbors, Suicide Squad) as “the Rebel;” Jay Pharoah (White Famous, Saturday Night Live) as “the Soldier;” and Sasheer Zamata (Saturday Night Live, Inside Amy Schumer) as “the School Girl,” all making a return from the ongoing story in this all-new experience.

Call of Duty: Infinite Warfare Absolution DLC Pack 3 is available July 6 on PlayStation 4, with release on Xbox One and PC to follow at a later date.

Call of Duty: Infinite Warfare DLC Pack 3 is included with the Call of Duty: Infinite Warfare Season Pass or can be bought separately for $14.99.

SOURCE: Activision

comments below