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

Treyarch has shared a new post on Reddit detailing some of the new playlist updates that have gone live in Call of Duty: Black Ops 4 on August 27 across platforms.

In the post, the studio also revealed that a new ‘Heatwave’ event for Black Ops 4 is going live on Thursday. The new Contraband Heatwave stream features an Ultra Weapon Bribe and is live from Thursday through Sept. 5 at 10AM PT.

FROM TREYARCH:

Ambush Solo on All Platforms

We’re bringing Ambush Solo to Blackout today by popular demand! Pick up a sniper rifle and take out the competition from a distance, or ambush unsuspecting enemies with the Bowie Knife along the way. Ambush is one of our favorite limited-time modes in Blackout, and we’re excited to bring back the Solo variant for everyone this week on all platforms.Weekly Blackout LTMs

Speaking of LTMs, we’re planning on bringing a different mode into rotation every week for the remainder of the Operation, with Close Quarters Frenzy already lined up for next Tuesday. Look for some classic LTMs to return soon (along with Pandemic) before we debut the latest all-new Blackout mode with our sixth Operation later in September.Deathmatch Domination + Party Game Moshpit Continues

In Multiplayer, Deathmatch Domination returns to Featured Playlists on consoles for players who slay and capture, and our new Party Game Moshpit continues on all platforms with all five party game modes in one convenient playlist. This format keeps matchmaking as fast as possible for multiple game types at once, so jump in, party up, and enjoy the good times. On PC, Endurance Chaos Moshpit continues this week in the Featured category.“Heatwave” Event Begins August 29th

Starting 10AM PT this Thursday on all platforms, we’re launching our new “Heatwave” Contraband event featuring earnable bonus Reserves and a new Ultra Weapon Bribe to unlock at Tier 15! Check out the event before it ends at 10AM PT Tuesday, September 5th, and have a safe and happy Labor Day Weekend.

See below for this week’s Featured Playlist updates:

Post image

BLACKOUT

  • Limited-Time Modes
    • Ambush Solo
      • SDM, Vendetta, Locus, and Havelina AA50 excluded from sniper rifle pool.
  • Featured Playlists (Aug. 27 – Sept. 3)
    • PS4/Xbox One
      • Ambush Solo
      • Alcatraz Portals
      • Quads
      • Duos
      • Solo
    • PC
      • Ambush Solo
      • Alcatraz Portals
      • Quads

MULTIPLAYER

  • Featured Playlists (Aug. 27 – Sept. 3)
    • PS4/Xbox One
      • Deathmatch Domination
      • Party Game Moshpit
      • Mercenary Deathmatch Moshpit
      • Barebones Moshpit
      • Bolt-Action Barebones Moshpit
    • PC
      • Barebones Moshpit
      • Party Game Moshpit
      • Endurance Chaos Moshpit

Treyarch

comments below