/** * Implements {@link DataSource#stop()}. Delegates to the wrapped * <tt>DataSource</tt>. Overrides * {@link CaptureDeviceDelegatePushBufferDataSource#stop()} because the * wrapped <tt>DataSource</tt> may not be a <tt>CaptureDevice</tt> yet it * still needs to be stopped. * * @throws IOException if the wrapped <tt>DataSource</tt> throws such an * exception */ @Override public void stop() throws IOException { dataSource.stop(); } }
/** * Implements {@link DataSource#stop()}. Delegates to the wrapped * <tt>DataSource</tt>. Overrides * {@link CaptureDeviceDelegatePullBufferDataSource#stop()} because the * wrapped <tt>DataSource</tt> may not be a <tt>CaptureDevice</tt> yet it * still needs to be stopped. * * @throws IOException if the wrapped <tt>DataSource</tt> throws such an * exception */ @Override public void stop() throws IOException { dataSource.stop(); } }
/** * Stops the effective input <tt>DataSource</tt> described by this instance * if it is connected. * * @throws IOException if stopping the effective input <tt>DataSource</tt> * described by this instance fails */ synchronized void stop() throws IOException { if (connected) getEffectiveInDataSource().stop(); } }
/** * Implements {@link DataSource#stop()}. Stops the actual transcoding * process if it has already been set up with {@link #connect()}. * * @throws IOException if stopping the transcoding fails */ @Override public synchronized void stop() throws IOException { if (outputDataSource != null) { transcodingProcessor.stop(); outputDataSource.stop(); } }
captureDevice.stop();
receiveStreamDataSource.stop();
sendStream.getDataSource().stop(); sendStream.stop();
dataSource.stop();