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

Activision Blizzard Esports League today announced the appointment of  Johanna Faries as the new Commissioner for the upcoming franchised Call of Duty League, set to begin in 2020.

Faries joined Activision over a year ago to be the Head of Call of Duty Esports, but is now transitioning to lead the entire business as Commissioner. She was part of the NFL team before joining Activision.

The Activision Blog had an interview with Faries discussing her new role and some of what is changing through the new appointment.

During my initial phase on the job, my team’s focus was really on setting a new product vision for Call of Duty as a city-based franchised league and to design an experience that we believe can grow to become one of the biggest sports leagues on the planet. Now that we have begun to sell franchises to ownership groups all over the world, it’s less about going from a white sheet of paper to what we have shaped now, and more about operating and managing this competitive ecosystem in a best-in-class way.

That’s not to say we aren’t still editing – I think every sports league is always in ‘edit’ phase even decades in! But now that we have a strong product vision and business model to share, and have sold in several team franchises in the process, we can now shift gears toward the planning and execution phase of our work. The role of Commissioner oversees all aspects of those dynamics and the key stakeholders involved in making the system go, so it’s a broader platform for management than where we were back in August when the focus was primarily internal-facing and design-driven.

She also re-confirmed the franchised league is launching in 2020 with the seven cities announced so far, with more to be announced although a final number of teams is not confirmed.

We plan to launch next year, so 2020 is a big moment for all of us. To date, we have announced seven teams for the league: Atlanta, Dallas, Los Angeles, Minnesota, New York, Paris, and Toronto and they all bring with them world class vision and insight that will supercharge this space. We are also working closely with the Call of Duty franchise team and studio partners to continue to think big about how we can innovate around the competitive experience, with an eye toward being the best league in the world.

Our ambition is quite large, but it’s also what gets us up every day feeling so energized by the potential scale of what Call of Duty esports can deliver. It’s a rush that can feel scary at times, but that thrill is typically where greatness can happen. I feel honored to be a part of it.

SOURCE: Activision

comments below