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

During the Xbox E3 briefing, Microsoft gave fans first details on the upcoming next-generation of Xbox consoles.

Microsoft revealed the first details on the new console’s specs and how the console will overall fit into the Xbox platform portfolio. It’s a focus on reducing load time. New processor from AMD.

Specs Highlights:

  • New Processor from AMD, 4x more powerful than Xbox One X
  • Zen2 from AMD GDDR6 
  • 120FPS Support, 8K Gaming
  • New SSD for Ram Support
  • Reducing load time for Xbox Games
  • Backwards Compatibility Confirmed

Project Scarlett will set a new bar for console power, speed and performance, arriving Holiday 2020 alongside Halo Infinite. Powered by a custom-designed processor, leveraging the latest Zen 2 and Radeon RDNA architecture from our partners at AMD, Project Scarlett will deliver a new level of immersion. Paired with high bandwidth GDDR6 memory, and a next generation solid state drive (SSD), Project Scarlett will provide developers the power they require to bring their creative visions to life. Featuring hardware accelerated raytracing, variable refresh rate, 8K capability and ultra-low latency input, Project Scarlett will deliver a new level of fidelity, precision and accuracy never before seen in console gaming.

With Project Scarlett, we continue our commitment to compatibility by ensuring your gaming accessories and Xbox career will also move forward with you, along with thousands of games across four console generations which will look and play best on Project Scarlett.

In an interview with GamesIndustry, Xbox’s Lead Phil Spencer has confirmed that Project Scarlett will still have a physical disc drive.

“We know, because we see it, that more and more players are buying digital. We think the experience in certain instances, specifically if I am away from my console and everything is on my hard-drive with the entitlements are all there, there are some scenarios that are easy. But we know that people still have discs.

“So even when we put out things like the Xbox One S All-Digital edition, we are very clear with the name because I am not trying to confuse anybody, that if you are somebody that has a library of discs, or that’s the way you want to acquire the content, then you should buy the Xbox One S, not the Xbox One S All-Digital… which is why we put it in the name, and yes I know it says SAD.

“I want to be very descriptive, because I am not trying to confuse anybody about what the options are. I want to give people choice, and right now physical is a choice that millions of people love.”

The new Xbox consoles, currently titled Project Scarlett, are expected to be available Holiday 2020. Halo’s new Halo Infinite title will be a launch title for the new console.

PlayStation’s next-generation console is also expected in 2020. Sony announced details on the PS5 back in late April.

SOURCE: Xbox

comments below