function previewStartVideo() {
	
	                // Get player object based on current player selector.
	                var player = jwplayer("expander-preview-row-" + $scope.rowIndex);
	
	                // If already playing or buffering or there's no video, just return.
	                if (!$scope.showPreviewVideo() || 'PLAYING' === player.getState() || 'BUFFERING' === player.getState()) {
	                    return;
	                }
	
	                $scope.previewIsPlaying = true;
	                $scope.previewIsActive = true;
	                $scope.previewIsLoading = true;
	
	                // If no player present, add one.
	                if ('undefined' === typeof player.getState()) {
	                    $scope._previewAddPlayer();
	                } else {
	                    // Otherwise, the state must be idle or paused and we should play vid.
	                    if ('IDLE' === player.getState() || 'PAUSED' === player.getState()) {
	                        player.play(true);
	                    }
	                    return;
	                }
	            }
/** 
	             * Start video if idle, resume playback if paused.
	             */
Start video if idle, resume playback if paused.
Start video if idle resume playback if paused .
function previewStartVideo() {
	                var player = jwplayer("expander-preview-row-" + $scope.rowIndex);
	                if (!$scope.showPreviewVideo() || 'PLAYING' === player.getState() || 'BUFFERING' === player.getState()) {
	                    return;
	                }
	                $scope.previewIsPlaying = true;
	                $scope.previewIsActive = true;
	                $scope.previewIsLoading = true;
	                if ('undefined' === typeof player.getState()) {
	                    $scope._previewAddPlayer();
	                } else {
	                    if ('IDLE' === player.getState() || 'PAUSED' === player.getState()) {
	                        player.play(true);
	                    }
	                    return;
	                }
	            }
function previewStartVideo ( ) { var player = jwplayer ( "expander-preview-row-" + $scope . rowIndex ) ; if ( ! $scope . showPreviewVideo ( ) || 'PLAYING' === player . getState ( ) || 'BUFFERING' === player . getState ( ) ) { return ; } $scope . previewIsPlaying = true ; $scope . previewIsActive = true ; $scope . previewIsLoading = true ; if ( 'undefined' === typeof player . getState ( ) ) { $scope . _previewAddPlayer ( ) ; } else { if ( 'IDLE' === player . getState ( ) || 'PAUSED' === player . getState ( ) ) { player . play ( true ) ; } return ; } }
Start video if idle, resume playback if paused.
Start video if idle resume playback if paused .
// Get player object based on current player selector. // If already playing or buffering or there's no video, just return. // If no player present, add one. // Otherwise, the state must be idle or paused and we should play vid.