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

A new patch update for Call of Duty: WWII, version 1.19, is now live on PlayStation 4, Xbox One, and PC.

It includes the new Days of Summer event, alongside Master Prestige Rewards, and more!

PATCH NOTES: 

FEATURE UPDATES

  • Master Prestige Rewards
  • Added ability to view Multiplayer Collections in Nazi Zombies menu
  • Added multiple default loadout options for survivors in Infected

MULTIPLAYER

Connectivity/Mechanics/Splitscreen/Gameplay

  • Fixed issue where splitscreen users were not able to tab past Orders tab after entering Settings menu
  • Fixed functionality issues occurring when players are invited to Custom lobbies
  • Fixed issue where players were not receiving 1 Unlock Token during first time user experience
  • Fixed splitscreen issue where players were losing Specialist Basic Training when other player was viewing killcam
  • Fixed issue where players occasionally load into matches without a HUD
  • Fixed issue where error message received when changing guns with Wanderlust Basic Training
  • Fixed issue where players were surviving getting stuck by a grenade when mantling
  • Improved hit detection consistency when using shotguns against a Cavalry Shield

Maps

  • Fixed issue on Ardennes Forest in S&D where bomb was getting stuck out of map

Modes

  • Fixed issue in Infected where if the only Infected player leaves, and a player with a Scorestreak becomes Infected, they keep and can use their Scorestreak

HQ

  • Fixed functionality issues occurring when players entered Firing Range while backing out of the Pause menu

UI/Art

  • Fixed issue where players were unable to customize their 15th and 16th Division spots without them automatically changing to match each other
  • Fixed UI issues experienced when players join a party after not completing all stages of the “To the Frontlines” user experience
  • Fixed issue where guest accounts could not access Leaderboards
  • Fixed Reflex Sight issue on ZK-383 Czech’d Out variant where iron sight is still shown when ADS
  • Fixed issue where character models’ legs are missing in War Mode cutscenes
  • Various UI and art fixes and improvements (overlapping text, playlist menus, Orders and Contracts, lighting and VFX, lobby count, Quartermaster navigation, emotes, Calling Card names, notifications, Paintjob and Emblem uploads, weapon names, weapon attachments, scrolling)

CoDCaster

  • Fixed issue where the players HUD will show when switching from Skycam to 1st person when the HUD setting is off
  • Fixed issue where killcam replay models are low res when Skycam is active

ZOMBIES

  • Fixed issue where players were unable to see when ADS as the Cavalier character with the Enfield No. 2
  • Fixed issue where Contracts were unavailable from the Quartermaster menu
  • Fixed issue where the ‘American Muscle’ Stinger variant was not showing the Nydar Sight in 3rd person
  • Fixed error that occurs occasionally when players start an “Into the Storm” match
  • Fixed issue where players were unable to assemble radio on The Darkest Shore
  • Fixed issue on The Tortured Path where zombies would sometimes disappear when killed
  • Fixed issue on The Darkest Shore where the minecart can be activated without a player being attached to it
  • Fixed missing character audio lines for ability activation
  • Fixed issue where character would be facing away from the player in the AAR
  • Fixed issue in The Tortured Path where Meuchlers were registering as dead when they were really just stuck in parts of the map
  • Fixed map exploit issue during boss stage in Across the Depths
  • Decreased number of Wüstlings on all maps
  • Fixed issue with Wüstlings getting stuck upon spawning
  • Fixed issue with audio of some Hidden Characters dialogue
  • Decreased the difficulty of the final step of the “Into the Storm” Easter Egg
  • Removed wave count restrictions when upgrading Wonder Weapons
  • Fixed issue in the Survival Maps where if player drops the Sword of Barbarossa, they don’t get it back
  • Various UI and art fixes and improvements (voiceover subtitles, objective trackers, menu tabs, description text, icons, Quartermaster navigation, lobby descriptions, weapon names, VFX, environment and rune visibility)

SOURCE: Reddit

comments below