extension/content.js
// setup video watcher and seeker. Only works with JW Player
setup video watcher and seeker. Only works with JW Player
setup video watcher and seeker . Only works with JW Player
function CheckAndSetupPlayerActions()
{
	var playerFrame = $('.video-container iframe');
	if(playerFrame.length === 1 && playerFrame[0].src.indexOf('youtube') === -1)
	{	
		playerFrame = playerFrame[0];
		var playerWindow = playerFrame.contentWindow;		
		$(playerFrame).ready(function(){		
			SeekPlayer(playerWindow);
			SetupPositionWatcher(playerWindow);
		});
	}
}
function CheckAndSetupPlayerActions ( ) { var playerFrame = $ ( '.video-container iframe' ) ; if ( playerFrame . length === 1 && playerFrame [ 0 ] . src . indexOf ( 'youtube' ) === - 1 ) { playerFrame = playerFrame [ 0 ] ; var playerWindow = playerFrame . contentWindow ; $ ( playerFrame ) . ready ( function ( ) { SeekPlayer ( playerWindow ) ; SetupPositionWatcher ( playerWindow ) ; } ) ; } }
setup video watcher and seeker.
setup video watcher and seeker .