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

UPDATE- October 21st: PlayStation Europe has announced that the PS4 price will also be reduced in Europe and Australia starting today. The price is now €349.99/£299.99 (RRP). Note: pricing may vary be region. Check with retailers for exact price.

*New RRP in the following markets (new price is not limited to these countries): Benelux, France, Ireland, Italy, Portugal, Spain €349.99. Australia $479.95. New Zealand $569.95. UK £299.99. Austria and Germany €349.95. United Arab Emirates AED1399.

Original Story:

Sony has announced that the PlayStation 4 will be available at a brand new price of $349.99 in the U.S.

 If you haven’t made the jump yet, and you’re starting early on your holiday wish list, I have good news – we’re dropping the price of the PlayStation 4 system in the U.S. and Canada. Starting tomorrow, October 9, you’ll be able to pick up PS4 starting at the new price of $349.99 USD / $429.99 CAD (MSRP). Our goal at PlayStation has always been to provide the best gameplay experiences at the best value, and we feel this new compelling price will open the doors to even more gamers that have yet to purchase a system.

With this new price, Sony has also announced that the Call of Duty: Black Ops 3 1TB Limited Edition PS4 will now be $429.99 instead of $449.99. If you already preordered, check with your retailer about the price change starting October 9.

If you’re interested in picking up a PS4 this holiday season, this is the new pricing structure for all the bundles: 

This new starting price point of $349 now matches the Xbox One’s price, which has been available for $349 since January of this year.

SOURCE: PS Blog

comments below