// 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 Consumer Products Group, a wholly owned subsidiary of Activision Blizzard, today announced new and returning licensing partners for their franchises at this week’s Licensing Expo 2019.

“Activision Blizzard has a portfolio of some of the world’s most beloved franchises, and our aim is to work with world-class licensees that enrich our fans’ experience around the world,” said Steve Young, President of Activision Blizzard Consumer Products Group. “The fan experience is at the center of everything we do, and we’re thrilled to create new opportunities for players to immerse themselves and show their passion for Activision’s and Blizzard’s games through relationships ranging from LEGO to UNIQLO.”

For Call of Duty, Activision has announced a new partnership with DRKN, a fashion company, to debut a high-end capsule collection this Fall at retailers. In addition, in Europe, Activision is partnering with Fashion UK for a range of items coming this Fall.

This year, the definitive, first-person action series Call of Duty continues to build on a successful 2018 with new collaborations and offerings. International streetwear brand DRKN, in collaboration with Activision, will launch a high-end Call of Duty capsule collection, which will be available Fall 2019. Additionally, Fashion UK, newly appointed Pan-European apparel and fashion accessory collaborator, will develop and offer a range of products across a wide selection of retailers, available this Fall. Following the May 30 game announcement, ABCPG worked with Bioworld, KontrolFreek, New Era and international companies Pyramid and Fashion UK on a range of products to drive further excitement around the reveal of the highly anticipated Fall launch. Furthermore, Astro, Scuf Gaming, Surreal, and Rubber Road will return with Call of Duty licensed programs this year.

2019 marks the 40th anniversary of Activision and its rich history helping to support and define the standard for innovation within the video game industry. Looking into Activision’s past, present, and future, we want to celebrate gamers – across generations – by leaning into the strong consumer demand for retro properties with the reemergence of iconic characters from the Crash Bandicoot and Spyro franchises. ABCPG is dedicated to fully embracing the possibilities with consumer products for Crash Team Racing as well as for the critically acclaimed Sekiro™: Shadows Die Twice.

Activision also shared a first look at an upcoming Captain Price figure that will be available this year alongside the launch of Call of Duty: Modern Warfare.

The company also shared in the press release that they are actively exploring options for expanding their consumer product reach for Call of Duty esports as the new franchised Call of Duty league is expected to launch in 2020.

comments below