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

Xbox One players can now start to pre-load the Call of Duty: Black Ops 4 Private MP Beta! If you pre-ordered Black Ops 4 digitally on the Xbox One Store, you can visit the Xbox Store, search up ‘Black Ops 4 Private Beta,’ and find the beta to download. Here’s the direct link.

And PC players, the Call of Duty: Black Ops 4 Beta can now be pre-loaded on Blizzard Battle.net. From what we’re hearing, all players who have a valid Battle.net account – regardless of pre-order — can actually download the beta now.

The beta does not go live until August 10 at 10AM PT on Xbox One and PC.

For those who pre-ordered at a retailer, Activision has not yet started to send out beta tokens. If you pre-ordered at a retailer, make sure you got a beta code from your retailer to redeem on callofduty.com/beta. Activision has not started to send out codes yet, which you’ll have to redeem on your platform to get access, so stay tuned for updates.

Original Story:

UPDATE: Xbox has started to send out this message on Xbox Live to users who have digitally pre-ordered Call of Duty: Black Ops 4, but you cannot download the beta still.

The Call of Duty: Black Ops 4 Private Beta has started to show up on the Xbox One Store for many users after a “COD BO4 Beta” ad showed up on the Dashboard.

The beta is not yet available for pre-load for those who pre-ordered the game, but the Xbox One Store says that the beta file is 32.5GB. The Xbox One store also says that the release date is August 9, 2018, which is most likely the pre-load start date for digital pre-orders. The PS4 beta was pre-loadable the day before the beta officially started as well.

We’ll update as learn more.

Images via @joelwoytila, @1cemanszn, @timothycaz.

comments below