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

The Blast Furnace has released a new update for Call of Duty: Strike Team on iOS, providing some new features and big fixes.

The update adds a new Domination mode, a new combat zone aboard a US Naval ship, and new weapon – the PDW-57

  • Global Conflict
    • Global Conflict is an all-new way to play “Call of Duty┬«: Strike Team”. Flashpoints of insurgent activity appear around the globe and are only available for a set amount of time. It’s then up to the Strike Team to defuse the situation in the combat zone and stop the enemy before the time runs out. Successful missions win you extra token rewards and the chance to move up the new tiered leagues at the end of each week. The faster the flashpoint missions are completed, the bigger the reward.
    • The new Global Conflict mode also includes tiered leaderboards to which players can submit their scores to compete against others worldwide. Starting in the Iron League, players can move up through the Bronze, Silver, Gold and Platinum leagues to stand alongside the elite players in the Master league.
    • Each Global Conflict flashpoint has one of three unique objectives: “Collect”, “Destroy” or “Survive”.
      • The “Collect” game style requires the operative to track down pieces of Intel concealed around the map while under heavy enemy fire. The faster the pieces of Intel are collected, the higher the player’s score will be.
      • “Destroy” sees the player planting C4 in select locations to deal a heavy blow to enemy plans, while fighting against the incoming threats. Each piece of C4 must be planted within a set time limit, otherwise the mission over, and the flashpoint falls to the enemy.
      • In the “Survive” game style, the player must hold off incoming enemy attacks for an allotted time to keep their squad in control of the area.
  • Domination Game Mode
    • The popular Domination game mode is also new to all of the Strike Ops maps.
    • This mode requires the player to capture and hold three strategic points in the combat zone for a set amount of time while holding off a constant stream of enemies. The longer the player survives, the more deadly the enemies become as the horde floods into the game map to try to recapture the markers.
  • Pacific combat zone “USS Ironhide”
    • Players can now play all of the Strike Ops and Global Conflict game styles on the all-new Pacific combat zone, which takes place on a stricken naval carrier.
    • The USS Ironhide has recently come under attack and serves as the perfect arena for the player to take the fight back to the enemy. Do battle amongst the debris on the carrier deck or weave through the Ironhide’s control room to secure the vessel.
  • Mystery Box
    • The Mystery Box gives players new kinds of reward while fighting the enemy in any of the Strike Ops game types (Survival, Time Attack, or Domination).
    • As soon as the Mystery Box becomes available, players must fight their way through enemy forces to open the box and receive game-changing powerups (such as Invincibility Shields, XP Multipliers, Speed Boosts, or the devastating Infrasonic Smart Bomb which emits a sonic blast and takes down multiple enemies) or a vital restock of your Ammo, Grenades, Claymores or Health Kits.
  • Submachine Gun Weapon Class
    • Last but not least, we’ve added the fan favorite SMG weapon class, including the PDW-57 and others for you to discover. These can be used across the main campaign missions as well as the all-new Global Conflict mode and the Strike Ops game types.

You can download the App on the App Store here. The update is available for free.

comments below