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

The United States Federal Trade Commission committed to opening an investigation to analysis the loot boxes in video games and their effect on child gambling.

During an oversight committee hearing in Congress, Senator Maggie Hassan (D-N.H.) asked FTC chairman Joe Simons whether he was willing to undertake the task of running the investigation and report back to the committee. Simons responded, “Yes,” alongside other Chairmans present nodding in approval to do so.

“Loot boxes are now endemic in the video game industry and are present in everything from casual smart phone games to the newest, high budget releases,” said Hassan, “Loot boxes will represent a $50 billion industry by the year 2022.”

“It’s time for the FTC to investigate these mechanisms to ensure that children are being adequately protected,” said Hassan, “And to educate parents about potential addiction and other negative impacts of these games.”

The issue of loot boxes and gambling in the video game industry became a scandal of its own when EA’s Star Wars Battlefront II in 2017 caused a widespread outrage over the pay to win aspect of the game. EA had to tone back many of their microtransaction plans because of the outrage, and lost a lot of revenue on the game throughout the calendar year.

Belgium Commission has already conducted their investigation and found that loot boxes are gambling and have required many games to remove their loot boxes from the titles; one of the titles effected is Blizzard’s Overwatch. The commission in Belgium has not yet investigated an Activision titles.

Call of Duty has had a supply drop system in the games since Call of Duty: Advanced Warfare.

In addition, in the U.S, the state of Hawaii opened their own investigation into loot boxes and their effect on children. State Senators from Hawaii last year called out EA in a press conference, referring to Star Wars Battlefront II as a ‘Star Wars-themed online casino.’ 

Senator Hassan has been at the forefront of the initiative to investigate loot boxes. The Senator asked the ESRB to investigate loot boxes and their effects, but the ESRB followed up by stating that they do not believe loot boxes are gambling but did add a new ‘In-Game Purchases’ Label to all games that contain in-game paid content.

Polygon reached out to the Entertainment Software Association, known as ESA.

ESA responded to Polygon: “Loot boxes are one way that players can enhance the experience that video games offer. Contrary to assertions, loot boxes are not gambling. They have no real-world value, players always receive something that enhances their experience, and they are entirely optional to purchase. They can enhance the experience for those who choose to use them, but have no impact on those who do not.”

The first two minutes of this video showcases the exchange in the committee hearing, which took place Nov. 27:

SOURCE: Polygon

comments below