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

Sledgehammer Games has released a new patch update, version 1.06, for Call of Duty: WWII on PlayStation 4 and Xbox One. The update is 388.9MB file on PS4 and 834.93MB on Xbox One.

There’s a new UI, ban for those who exploited the prestige glitch in HQ, HQ is now populated worldwide on both PS4 and Xbox One, new Chrome camo, and more.

Patch Notes: 

MULTIPLAYER UPDATES:

  • XB1 and PS4 crash fixes
  • Server/connectivity improvements
  • Fixed an issue preventing users from entering local play match if booting game without internet connection
  • Fixed an issue of players being kicked to ghost lobby then start screen with “Lost connection to host” message after Public matches
  • Fixed an issue of showing black screen when host leaves match
  • Fixed an issue where players who are not the host see black and screen and no AAR between matches
  • General Leaderboard fixes and improvements
  • Fixed an issue of 2XP not being granted when indicated, sometimes granted 3XP
  • Fixed HQ progression exploits
  • Fixed an issue preventing Scorestreak Training from functioning due to Custom Match settings applied prior
  • Fixed an issue user from backing out into HQ if user accepts an invite to a lobby while in Scorestreak Training
  • Fixed map exploits on Pointe du Hoc, USS Texas, London Docks, and Flak Tower
  • Fixed an issue allowing “snaking” exploits
  • Fixed one-way smoke screen issue
  • Paratroopers in HC modes now have HC health, not normal health
  • Fixed the issue of granting free Flamethrower with partial fuel if another Flamethrower is equipped already
  • Fixed S&D issue where players are stuck when planting the Bomb after tossing a Molotov
  • Fixed an issue when party leader changes game mode, members are taken to a ghost lobby
  • Fixed an issue where when party leader leaves lobby before user loads out of match, users enter a ghost lobby
  • Fixed an issue where if party leader leaves in middle of match without bringing the rest of the party, shows that party leader is still there
  • General party improvements, including crash fixes, connectivity fixes, and access to HQ after a match
  • Fixed firing range issue causing continuous emoting
  • Fixed not allowing players who have Prestiged to accept, complete, or turn in Orders and Contracts
  • Fixed an issue not rewarding completed Mastery Challenges
  • Fixed an issue not tracking Division Skill Challenge progression in War Mode matches
  • Fixed Weekly Order issue not registering Hill Taker win
  • Fixed Daily Order Breathing Fire issue not tracking progress
  • Fixed an issue not properly tracking Panzerschreck Challenge, preventing players from receiving snow camo unlock
  • Fixed Zombies issue preventing players from earning supply drops
  • Various MP and Zombies splitscreen improvements
  • Cinematics resolution fixes on enhanced consoles
  • Fixed an issue pushing update to stats before AAR has been displayed (no more lost/unviewed stats)
  • Fixed an issue showing incorrect leaderboard data
  • Fixed an issue where changing character’s face and equipping Division uniform displays previous character face and kicks player out of the menu
  • Fixed an issue causing Headquarters death, weapon, and division stats to be logged in the Combat Record
  • Various UI improvements (Includes Order/Challenge completion instructions)

MP WEAPON TUNING UPDATES:

  • BAR nerfed to add more recoil
  • Reticle unlock fix for STG-44 reflex sight
  • Custom reticle fixes for scopes of Kar98K and Lee Enfield

MP BASIC TRAINING UPDATES:

  • Primed Basic Training nerf

GAMEBATTLES UPDATES:

  • Fixed delayed start of GameBattles matches
  • Increased GameBattles Hardpoint time limit from 5 min to 10 min
  • Other general GameBattles improvements

CAMPAIGN UPDATES:

  • Fixed Campaign issue causing user to lose progression and re-lock missions when selecting New Game in the menu

SOURCE: Reddit

comments below