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

A new bombshell report has surfaced from Jason Schreier of Kotaku regarding Call of Duty’s 2020 release. He has reported that current in-development Call of Duty 2020 game is in “a mess” state, and Treyarch is taking over the development to bring Call of Duty: Black Ops 5 as the 2020 Call of Duty game.

Kotaku states that Activision informed the studios this week of the major change that the company is making to its plans, as Sledgehammer Games and Raven Software were still in development of the 2020 Call of Duty game.

It’s a significant shift for Activision’s massive first-person shooter franchise, which is one of the most lucrative video game series on the planet. Every fall for the past 15 years, Activision has put out a new Call of Duty game, supported by a stable of different developers who rotated duties as required. Since 2012, Activision has followed a three-year cycle for its three lead studios: Infinity Ward, Treyarch, and Sledgehammer. 

Kotaku reports that Sledgehammer Games and Raven Software will serve as support studios to work with Treyarch on bringing out the 2020 Call of Duty game. Raven Software was actually the lead development studio for the 2020 Call of Duty game with Sledgehammer Games supporting them.

Sledgehammer Games and Raven have been working on a single player campaign for their 2020 game set in Cold War, and that is supposed to be the campaign for the new Black Ops game.

As part of their report, Kotaku sources told them that there was tension between Sledgehammer Games and Raven Software during the development of 2020 title. The studios kept arguing over the features of the 2020 title. The game was apparently a “mess.” Activision decided to step in and put Treyarch in charge of a new Black Ops project for 2020.

This will be the first time that Treyarch is making a Call of Duty game in the 2 year development cycle since the release of Black Ops 2 back in 2012. Since then, Treyarch’s Black Ops 3 and Black Ops 4 have been created in a 3 year development cycle.

Sledgehammer Games has been having a rocky time the last year, with co-founders Michael Condrey and Glen Schofield departing the company in 2018. The new studio leadership is under Aaron Halon. It was not clear what the studio planned to make after the Call of Duty: WWII season with the co-founders departing.

Michael Condrey has reportedly been recruiting Sledgehammer Games developers to his new 2K Studio, and many developers have been leaving SHG over the past year. Developers still at Sledgehammer have been shocked by the amount of developers leaving, Kotaku reports.

Sledgehammer Games not releasing a fully fledged title for 2020 will be the first time the studio has missed three year release since 2014. Sledgehammer Games was founded in 2009 as an Activision-owned studio and started their journey as co-developers of Call of Duty: Modern Warfare 3 back in 2011 with Infinity Ward. After that, Activision transitioned Call of Duty to a three year development cycle with Sledgehammer Games, Treyarch, and Infinity Ward as the lead developers rotating through the cycles.

Sledgehammer Games released Call of Duty: Advanced Warfare in 2014 and Call of Duty: WWII in 2017.

If this is the case, next year will see a new Call of Duty: Black Ops game — marking the fifth title in the sub-series.

Activision has not confirmed this info and did not issue a statement.

SOURCE: Kotaku

comments below