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

With the release of Call of Duty: Black Ops 4 approaching rapidly, fans have been attempting to gain as much knowledge about the title prior to playing.

Treyarch has revealed that they will be supporting a strong PC community with the addition of Black Ops 4 on Blizzard’s Battle.net platform, along with sustained dedicated resources after launch.

Now that the official BO4 release is just over a month away at the time of writing, the developer answered a collection of questions from community members on the official Black Ops 4 subreddit regarding the PC.

Questions included aspects such as how Treyarch will be handling cheaters, players using controllers while on the PC, optimization, and more.

A full dialogue of the questions and answers can be found below from the original Reddit thread.

Q. How will you handle controller players on PC?

A. “Aim assist will be Off in competitive MP.”

Q. How will you handle cheaters?

A. “Our security team is working closely with Blizzard’s team and their experience to ensure we have a robust system in place, and one that is nimble enough to respond quickly to any issues.”

Q. Will optimization patches be released?

A. “We will continue to optimize through launch, and after. Between the team here at Treyarch, at Beenox, and with access to the compatibility labs at Blizzard we’re able to test through a bunch of hardware configurations. We’ll have specifics on the launch minimum and recommended specs closer to release. But we will also continue to support wherever possible post-launch.”

Q. How will Snipers be handled?

“Right, they were nerfed during the beta, and we continue to test and balance. Hopefully, the speed with which we were able to hear the comments and address them during the beta is a good indication of the attention we’ll be giving the game through launch and beyond.”


We will continue to provide updates on Treyarch’s plans for Black Ops 4 on the PC as they are made available¬†prior to the October 12 release date.

SOURCE: Reddit

comments below
Writer and reporter at charlieINTEL.com and Dexerto.com.