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

UPDATE — March 30th: Shinobi602 has followed up on NeoGAF and posted more details about Call of Duty 2016’s setting. Find those details in our new article here.

Original Story: 

According to a new rumor by industry insider Shinobi602, this year’s Call of Duty title from Infinity Ward takes place “very far” into the future and is based around space combat.

He specifically says that the title will be “full on sci-fi” and stated that this year’s game setting makes Black Ops 3’s setting look like the “stone age.” Infinity Ward experimented with space combat in Call of Duty: Ghosts’ campaign mode; one of the missions was set entirely in space.

Shinobi602 has been an accurate source in the past. Last year, he revealed that Black Ops 3 was coming to last-gen consoles months before Activision officially announced it, even accurately stated that different a studio would be handling it. He also accurately revealed last year that Black Ops 3 would have wall-running and cybernetics.

In addition, EuroGamer has independently stated that one of their sources has also claimed that this year’s game takes place far into the future in space. EuroGamer also state that this year’s title is not a sequel to Call of Duty: Ghosts.

Oh, also, Infinity Ward tweeted this out back in January…

 

Activision has not yet officially announced details about Call of Duty 2016. Previously, Activision has stated that the title is “new,” “innovative,” and “ambitious.” Gameplay from the new title is expected at E3 in partnership with PlayStation. The title is expected to launch in Q4 2016.

SOURCE: NeoGAF and EuroGamer

comments below