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

Who knew this day would finally come?

Activision has announced that post launch maps and modes for Call of Duty: Modern Warfare will release on all platforms at the same time, marking an end to the exclusivity periods that have been part of Call of Duty for more than 12 years.

The company announced this information as part of a blog post detailing how Cross Play will work in Call of Duty: Modern Warfare. Cross Play will allow players to play Modern Warfare with friends on any platform – between PS4, Xbox One, and PC. 

Following the launch of Modern Warfare next month, the team has worked to ensure that content will be released in a way that enables all players to continue to seamlessly play together. Most Post-launch gameplay content, including new multiplayer maps, new multiplayer modes, special ops missions and more will release simultaneously across all platforms. We look forward to further detailing how post-launch content plans will operate prior to Modern Warfare’s launch on October 25th.

In addition, Call of Duty is excited to continue its partnership with PlayStation, including last weekend’s PS4 debut of the Modern Warfare Open Beta as well as the recent PS4 exclusive 2v2 Alpha. But the best is yet to come. For the very first time in our partnership with PlayStation, PS4 players will have an exciting Day 1 advantage. More details on how Call of Duty will continue to support PlayStation as the best place to play Modern Warfare will be rolled out soon.

With Cross Play in mind, Activision and Infinity Ward wants to keep the player base together and ensure all players have the same matchmaking content to play. 

The exclusivity agreement for Call of Duty started all the way back in 2009 with Call of Duty: Modern Warfare 2, when Xbox was receiving new DLC content 30 days early before PS3 and PC. That Xbox deal lasted through 2014’s Advanced Warfare release. 

In 2015, Activision announced a new partnership with Sony PlayStation starting with Call of Duty: Black Ops 3 to bring new content first to PlayStation 4 and have esports hosted on the PS4. That deal has lasted for 4 years now, and with Call of Duty: Black Ops 4 the deal changed to bring all new content 7 days early on PS4. PlayStation has remained the presenting partner of the Call of Duty World League as well. 

As previously announced by Infinity Ward and Activision, Call of Duty: Modern Warfare does not have the Season Pass. All post launch maps are available for free for everyone across platforms. 

You can learn more about Cross Play support here

SOURCE: Activision 

comments below