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

[nggallery id=490]

According to one of our sources, a new weapon camo will be go on sale for Black Ops 2 based upon fan votes. Starting May 23rd, there will be an option to vote for two of four camos via the message of the day in Black Ops 2 on the Xbox 360. The two camos with the most number of votes will go on sale starting May 29th.

The four camos that can be voted upon will be:

  • Comic Book
  • Cyborg
  • Dragon
  • Paladin

Our source has sent us the full press release that will be put up for this:

New Personalization Packs are coming to Call of Duty®: Black Ops II first on Xbox LIVE® Marketplace, and it’s up to you to decide which ones make the cut! Beginning on May 23rd through May 28th, Xbox 360® players can vote on their favorite Weapon Camo out of a group of four through the Call of Duty®: Black Ops II in-game Message of the Day. The two Weapon Camos with the most votes will become available for purchase as new Personalization Packs via the in-game store and on Xbox LIVE® Marketplace on May 29th.

The voting will start on May 23rd and it will end on May 28th. The camo should be going up on sale starting May 29th. The two winning camos will be sold as a Personalization Pack which costs 160 MSP. Each of the packs will contain the camo, 3 reticles, and 1 new Calling Card; similar to the current packs they offer.

The source has not said anything about when this will be coming to PS3/PC.

UPDATE: Acitivision’s Community Manager, OneofSwords, has officially announced the four camos with the information we provided. The camos will go up for voting starting May 23rd. We’ve added new images from OneOfSwords to our gallery.

comments below