// 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 update on Reddit on what’s happening around Call of Duty: Black Ops 4. The studio continues to do playlist updates, Double XP events, and more for the title.

They have announced that Quad Feed will be live in Call of Duty: Black Ops 4 starting November 27 through December 2.

In addition, Duos is back in Blackout allowing those who have been wanting to play that mode to now do so.

Here’s the full update from Treyarch:

Blackout Update: Hot & Heavy Moshpit + Duos Return

Post image

First up, Blackout news! After a few rounds of testing LTM moshpits and rotating playlists to keep wait times low across all regions, we’ve collected enough data to plan what’s next for Blackout. We’re happy to announce that we’re expanding the playlist selection on consoles today, and we’ll be keeping them in place for the foreseeable future. This selection includes:

  • Hot & Heavy Moshpit (Hot Pursuit and Heavy Metal Heroes)
  • Alcatraz Quads
  • Quads
  • Duos
  • Solo

We’ve seen a ton of requests for a Moshpit offering our two most popular redeploy modes, and we’ve been working behind the scenes to make it happen for our players. It takes time for the team to script, test, and implement new Blackout Moshpits, and we’re excited to launch these updates today. Props to the community for suggesting such a fitting title!

Thanks again for all your feedback and support while we’ve tested these new Moshpits over the past few weeks. While it’s not possible to please everyone all the time, we wanted to make sure we collected feedback on several variations before landing on a long-term plan. We never make playlist changes lightly or without real data, and we’ll always focus on what’s best for our global community… even if it takes a little longer than you might expect.

See you at Firing Range.

2XP Chaos Domination in Multiplayer

Good news for OBJ fans who like to rank up fast: Chaos Domination gets the 2XP treatment as this week’s showcased Featured Playlist in Multiplayer. Get out there and grind, and keep an eye out for 2XP Capture the Flag to join the rotation next week! And if you’re looking to Prestige in more than just MP this week, we’ve got more good news…Thanksgiving Quad Feed Begins Nov. 27

Post image

Enjoy the long holiday weekend on us with our Thanksgiving Quad Feed tomorrow through 10AM PT December 2nd, including:

  • 2XP in Multiplayer, Zombies, and League Play
  • 2X Weapon XP in Multiplayer, Zombies, and League Play
  • 2X Merits in Blackout
  • 2X Nebulium Plasma in Zombies
  • Tungsten Tripler offer in the Zombies Laboratory

Here’s what’s new in today’s update:

Post image

MULTIPLAYER

  • Featured Playlists
    • PS4/Xbox One
      • Chaos Domination (2XP)
      • Nuketown
      • Barebones Moshpit
      • Bolt-Action Barebones Moshpit
      • Mercenary Deathmatch Moshpit
    • PC
      • Chaos Domination (2XP)
      • Nuketown
      • Barebones Moshpit

BLACKOUT

  • Hot & Heavy Moshpit
    • New Moshpit now live featuring Hot Pursuit and Heavy Metal Heroes
  • Featured Playlists
    • PS4/Xbox One
      • Hot & Heavy Moshpit
      • Alcatraz Portal Quads
      • Quads
      • Duos
      • Solo
    • PC
      • Alcatraz Portal Quads
      • Hot & Heavy Moshpit
      • Quads

SOURCE: Reddit

comments below