/** * Starts the transmission. Returns null if transmission started ok. * Otherwise it returns a string with the reason why the setup failed. * Starts receive also. * * @return result description */ public synchronized String start() { if (started) return null; // Create a processor for the specified jmf locator String result = createProcessor(); if (result != null) { started = false; } // Create an RTP session to transmit the output of the // processor to the specified IP address and port no. result = createTransmitter(); if (result != null) { processor.close(); processor = null; started = false; } else { started = true; } // Start the transmission processor.start(); return null; }
/** * Implements {@link DataSource#disconnect()}. Stops and undoes the whole * setup of the very transcoding process i.e. disconnects from the output * <tt>DataSource</tt> of the transcodingProcessor and disposes of the * <tt>transcodingProcessor</tt>. */ @Override public synchronized void disconnect() { if (outputDataSource == null) return; try { stop(); } catch (IOException ioex) { throw new UndeclaredThrowableException(ioex); } outputDataSource.disconnect(); transcodingProcessor.deallocate(); transcodingProcessor.close(); transcodingProcessor = null; outputDataSource = null; }
/** * Starts the transmission. Returns null if transmission started ok. * Otherwise it returns a string with the reason why the setup failed. * Starts receive also. * * @return result description */ public synchronized String start() { if (started) return null; // Create a processor for the specified jmf locator String result = createProcessor(); if (result != null) { started = false; } // Create an RTP session to transmit the output of the // processor to the specified IP address and port no. result = createTransmitter(); if (result != null) { processor.close(); processor = null; started = false; } else { started = true; } // Start the transmission processor.start(); return null; }
/** * Starts the transmission. Returns null if transmission started ok. * Otherwise it returns a string with the reason why the setup failed. * Starts receive also. * * @return result description */ public synchronized String start() { if (started) return null; // Create a processor for the specified jmf locator String result = createProcessor(); if (result != null) { started = false; } // Create an RTP session to transmit the output of the // processor to the specified IP address and port no. result = createTransmitter(); if (result != null) { processor.close(); processor = null; started = false; } else { started = true; } // Start the transmission processor.start(); return null; }
processor.close(); processorIsPrematurelyClosed = false;
receiveStream.processor.close();