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

Call of Duty Points, the in-game currency for Call of Duty, is now live in Call of Duty: Black Ops 4 on Xbox One and PC, after releasing last week on PS4.

Call of Duty Points can be used for buying certain content in Black Ops 4 in MP, Blackout, and Zombies.

In MP and Blackout, Call of Duty Points can be used to buy Special Orders or tiers of current tiers in the Black Market. There’s different Special Orders, which unlock different tier streams available to unlock with Call of Duty Points. Special Orders will rotate throughout time, but Treyarch says that if you’ve activated one, you will get to keep them until you complete it. You can rotate through which orders are active for you in game. Each stream costs a different amount of Points. Once you’ve unlocked a stream, you then have to level it up through progression in game, or you can purchase the full tier stream with Call of Duty Points.

You can also directly purchase tiers from Contraband Streams. Each tier costs 100 Call of Duty Points. All tiers must be unlocked in order. For example, if you want tier 200, you have to purchase every tier before that together to get that tier. You can still grind to get each tier by just playing, just like before. It would theoretically cost 20,000 Call of Duty Points, which is $200, to unlock the entire Operation First Strike Content Stream. Based on additional images, once you reach Tier 200 in Black Ops 4’s Operation First Strike stream, more tiers unlock with just Reserves as rewards.

Players can get Call of Duty Points from the in-game store, or your platform’s respective store. Call of Duty Points you may have had leftover from previous Call of Duty games will be accessible and should show up in Black Ops 4 to use.

If you purchased the Digital Standard Edition, Digital Deluxe Edition, Digital Deluxe Enhanced Edition, Pro Edition, or Mystery Box Edition, you will get your bonus Call of Duty Points in-game in Call of Duty: Black Ops 4. Each edition came with a different amount of Points.

The Black Ops Pass for Call of Duty: Black Ops 4 also includes a bonus 1,000 Call of Duty Points, and 300 Nebulium Plasma to use in Call of Duty: Black Ops 4 Zombies.

Call of Duty Points were first introduced in Call of Duty back in 2015 in Call of Duty: Black Ops 3 with its Black Market system and has since been in every Call of Duty game as a way for players to purchase Supply Drops in Call of Duty titles.

comments below