// 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 has announced new details on the last gen versions of Call of Duty: Black Ops 3. Activision confirmed the PS3 and Xbox 360 versions of the game was in development back in June by Beenox and Mercenary Technology.

The last gen version of Black Ops 3 will only include access to the multiplayer and zombies modes of the game. Activision originally announced that the last-gen versions will feature a 2 player campaign, but today, they’ve announced that the campaign mode will not be included at all.

The Black Ops 3 PS3 and Xbox 360 versions will feature Multiplayer and Zombies gameplay only, not Campaign. The ambitious scope of the 1-4 player coop Campaign design of the PS4, Xbox One and PC versions could not be faithfully recreated on old generation hardware.

With this being said, Activision has stated that players on Xbox 360 and PS3 will have access to the multiplayer and zombies mode.

Delivering the best possible gameplay experience on all platforms is always our highest priority. With that in mind, Black Ops 3 PS3 and Xbox 360 players can continue to look forward to a new experience of Black Ops 3 multiplayer, including the new momentum-based, chain-movement system, as well as the all-new Specialist class of 9 Black Ops soldiers, which fundamentally change the way players engage in combat.

Black Ops 3 players on PS3 and Xbox 360 will also have a chance to immerse themselves in the all-new Zombies mode, called “Shadows of Evil,” which features a 1940’s film-noir inspired adventure that takes the signature Black Ops Zombies gameplay to a new level.

In addition, Activision has stated that all eSports features and the weapon paint shop will not be available on last gen.

Fans should note that other features built to leverage the next generation hardware like the new Weapon Paint Shop and the new suite of eSports tools will only be available on Call of Duty: Black Ops 3 for PS4, Xbox One, and PC.

Because of these feature differences, Activision will sell the last-gen versions for a retail price of $49.99, and it will include a download code for Call of Duty: Black Ops 1.

The PS3 and Xbox 360 versions of Call of Duty: Black Ops 3 will be available for a suggested retail price of $49.99 and include a bonus download for the original Call of Duty: Black Ops (bonus download availability may vary by region), the game that launched this series.

With all of these differences, the last-gen versions of the game has a different box art. The box art states that in order to play Black Ops 3 on last-gen, an internet connection is required.

SOURCE: Activision

comments below