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

Geoff Keighley has announced on Twitter that he is hosting a major event as part of the gamescom 2019 event in Cologne, Germany.

Keighley has revealed that on August 19 at 11AM PT / 2PM ET / 8PM CEST that the Opening Night event will take place and be live-streamed worldwide for fans to watch on the website.

As part of this event, Keighley shared on Twitter a graphic as to which publishers will be part of the event, and Activision is listed as a partner to have an announcement during the event. Activision’s only new game for this fall is Call of Duty: Modern Warfare, so we should expect something Modern Warfare related news to drop during the show.


Produced by Geoff Keighley, host and producer of ‘The Game Awards’.

“gamescom: Opening Night Live” will be produced in English and will be hosted live in front of around 1,500 fans in Cologne. This will give gamers worldwide an overview of what to expect during this year’s gamescom week.

Some of the publishers scheduled to make announcements and debut world premiere content during gamescom: Opening Night Live include: 2K, Activision, Bandai Namco Entertainment, Bungie, Capcom, Electronic Arts, Epic Games, Google Stadia, Koch Media/Deep Silver, Private Division, Sega, Square Enix, Sony Interactive Entertainment, THQ Nordic GmbH, Ubisoft and Xbox Game Studios. A number of independent game studios will also make announcements.

We will update you as we get closer to gamescom on what to expect with Call of Duty: Modern Warfare.

comments below