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

Activision and China developer Elex have released a new mobile Call of Duty game in select regions, based around a new strategy mode for the title, called Call of Duty: Global Operations. Elex is the maker of Clash of Kings, a very popular mobile title available worldwide.

The game is called Call of Duty: Global Operations is available exclusively in Australia and Philippines on Android only. The game has a Facebook page, which has been providing updates on the mobile game as it progresses in its testing. The page went live in early November.

Control armies and wage global conflict in Call of Duty®: Global Operations, the next tactical MMO PvP game from Activision and Elex, the makers of Clash of Kings!

The discovery of a highly toxic and weaponizable element Nuclium NM (72) threatens to upset global order. As governments and private operators fight to control the limited Nuclium supply, the world begins to descend into anarchy. At the center of the conflict is GLOBUS, a malicious corporation hell bent on using weaponized Nuclium to bring the world under its dominion.

The only thing standing in the way is YOU. Build your military base and assemble a modern army led by classic Call of Duty® characters. Then dive into epic multiplayer battles, using your own unique strategy to conquer players from all around the world.

Think you got what it takes to save the world from anarchy?
Call of Duty®: Global Operations is now available in Google Play store in Australia and Philippines!

There’s no indication from Activision on when this title could launch beyond the two regions its available now in. The company has been expanding its mobile game portfolio over the years, and made a point in their latest investor calls that mobile is a place where they’re going to invest in more so in the future.

For Call of Duty, Activision has 3 games in this category with Call of Duty: Strike Team, Call of Duty: Heroes, alongside a new Call of Duty game in development on mobile for China. Heroes is the only mobile game currently getting updates.

comments below