video
Class Stream

java.lang.Object
  extended by video.Stream
All Implemented Interfaces:
javax.media.ControllerListener, javax.media.datasink.DataSinkListener

public class Stream
extends java.lang.Object
implements javax.media.ControllerListener, javax.media.datasink.DataSinkListener

Stream saves cam input as a video in cam mode until the cam process is interrupted

Author:
shankar

Constructor Summary
Stream(javax.media.protocol.DataSource dataSource, javax.media.MediaLocator outML)
          Constructs Stream with given DataSource to the corresponding MediaLocator
 
Method Summary
 void controllerUpdate(javax.media.ControllerEvent evt)
          Controller Listener.
 void dataSinkUpdate(javax.media.datasink.DataSinkEvent evt)
          Event handler for the file writer.
 void destroyProcess()
          destroyProcess sends the stop signal to the processor and stops the data sink
 boolean start()
          Creates the processor from the given data source and realizes the processor and starts the process
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Stream

public Stream(javax.media.protocol.DataSource dataSource,
              javax.media.MediaLocator outML)
Constructs Stream with given DataSource to the corresponding MediaLocator

Parameters:
dataSource -
outML -
Method Detail

destroyProcess

public void destroyProcess()
destroyProcess sends the stop signal to the processor and stops the data sink


start

public boolean start()
Creates the processor from the given data source and realizes the processor and starts the process

Returns:
true if the process completed success fully or false if any error occurs

controllerUpdate

public void controllerUpdate(javax.media.ControllerEvent evt)
Controller Listener.

Specified by:
controllerUpdate in interface javax.media.ControllerListener

dataSinkUpdate

public void dataSinkUpdate(javax.media.datasink.DataSinkEvent evt)
Event handler for the file writer.

Specified by:
dataSinkUpdate in interface javax.media.datasink.DataSinkListener