Code example for LocalSocket

Methods: close

0
    public void stopCapture() { 
    	try { 
    		if ( audioPublisher != null ) {
        		Log.i( TAG , "shutting down publisher");
    			audioPublisher.shutdown();
    			localSocket.close();
    			audioPublisher = null;
    		} 
    		recorder.stop();
    		recorder.release();
    	} 
    	catch( Exception e ) {
    		Log.e(TAG, "[stopCapture()]", e);
    	} 
    	 
    }