// 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 Call of Duty: Infinite Warfare Multiplayer Beta Weekend 2 has arrived! Weekend 2 of the beta is now live on PlayStation 4 and Xbox One till Monday, October 24 at 10AM PT.

On both PlayStation 4 and Xbox One, the Infinite Warfare Beta Weekend 2 is open to everyone on the platform — no preorder or code is needed to play. Visit the PlayStation Store or Xbox One Store now to download the beta. On PS4, if you played during Beta Weekend 1, it is the same file and all of your weekend 1 stats will be carried over to weekend 2.


The Infinite Warfare multiplayer beta is a 19GB download. The beta lets players get their first hands on with the Infinite Warfare multiplayer experience.

The Infinite Warfare beta includes 5 multiplayer maps, 3 Combat Rigs, 4 Game Modes, and more.

There are five maps available in the beta, including Terminal, Frost, Frontier, Precinct, and Throwback. See the maps in action here.

Players can also experience the Combat Rig system in the Call of Duty: Infinite Warfare beta. Learn more about the Combat Rigs here. All 6 of the Combat Rigs are playable in the beta, with players starting off with 3 unlocked: Warfighter, MERC, and Synaptic.

Team Deathmatch, Domination, Defender, and Frontline (a new mode) are the modes currently available in the Call of Duty: Infinite Warfare beta.

14700967_10211273638986944_1442895172844661903_o

In addition, in the Infinite Warfare beta, player can also get hands on with the new Weapon Crafting system, which lets players craft weapons by using Salvage, the in-game currency. For the beta, Infinity Ward has increased the Salvage drop rate so that players can try out the crafting system. The beta also features access to the Quartermaster, where players can acquire Supply Drops. Learn more about the weapon systems in our post here and in the video here.

Please note that all stats from the beta will not transfer over to the final game on November 4.


If you experience any issues during the beta, please reach out to Activision Support via their site or on Twitter.

Weekend 2 of the Call of Duty: Infinite Warfare multiplayer beta ends on Monday, October 24 at 10AM PT. Beta is not available on PC.

Be sure to follow us on Twitter for the latest news on the Infinite Warfare beta!

comments below