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

ReKTGlobal, the ownership group of the London Royal Ravens Call of Duty® League team, has announced that DJ Nicky Romero will be at their Home Stead event taking place on February 8 through February 9.

London’s kickoff Call of Duty League event brings professional esports, exclusive entertainment and behind-the-scenes access to fans and gamers with live tournament-style gameplay, VIP meet-and-greets, and a headline show by international DJ Nicky Romero, a celeb contender in the Home Series’ must-see 2v2 Hype Battle.

Romero will be part of the multi fan experience at the first ever Call of Duty League Home Stead event. The event will also feature the first ever Call of Duty League Hype Battles, where celebrities will go head to head in show matches at the home stead events. Based on the release, Hype Battles will be 2v2 matches in Call of Duty: Modern Warfare.

ReKTGlobal announced this news in press release this morning.

One of the most influential modern electronic music artists and media moguls of our time, Romero will headline the London Royal Ravens Home Series, which marks the first hometown tournament for the team in Call of Duty League’s inaugural season. In addition to an unforgettable concert experience on Feb. 8, Call of Duty super fans will have the opportunity to connect with Romero at a VIP meet-and-greet and watch him as he takes on soon-to-be-announced celeb opponents during one of the highly anticipated Hype Battles that allow the world’s biggest stars to showcase their Call of Duty skills on the main stage at league events.

“We’re excited to bring an incredible and historic weekend filled with unforgettable performances and festivities to Call of Duty’s most loyal fans and the community as a whole,” commented London Royal Ravens Managing Director Michael ‘ODEE’ O’Dell, who also serves as Chief Gaming Officer for parent company ReKTGobal. “As headliner, Nicky Romero brings incredible energy to the stage. He has strong ties to the UK and the esports community as an avid Call of Duty player and an investor committed to helping bring esports to its fullest potential. Between the action-packed tournament gameplay with Romero at the analyst desk on Sunday, and the Hype Battle and his exclusive concert on Saturday evening, fans are in for a real treat at this can’t-miss event.”  

The London Royal Ravens Home Stead event will take place February 8-9. Tickets to attend the event are on sale here.

The Call of Duty League officially begins January 24 with the Launch Weekend hosted by Minnesota ROKKR.

Activision announced an updated format for the league this week, including a new schedule. More details on the format is available here.

comments below