de.humatic.dsj.sink
Class NetworkSink

java.lang.Object
  extended by de.humatic.dsj.sink.Sink
      extended by de.humatic.dsj.sink.NetworkSink
Direct Known Subclasses:
WMSink

public class NetworkSink
extends Sink

Base class for network sinks.


Field Summary
static int DSHOW
           
static int WM_NET
           
static int WM_PUSH
           
 
Fields inherited from class de.humatic.dsj.sink.Sink
connected, CONTROLABLE, DISPLAY_LOCAL, DS_NETWORK, DUAL_OUTPUT, DUMP, FILE, flags, FORCE_PREVIEW_BRANCH, LOCAL, majorType, NO_CONTROLS, NO_TRANSCODE, PLAY_OUT, PREVIEW, SHOW_DIALOGS, SHOW_DLG_SAVE, subType, WM_NETWORK
 
Constructor Summary
NetworkSink(int mt)
           
 
Method Summary
 void close()
           
static NetworkSink fromXML(java.lang.String name, java.lang.String outputPath)
          Creates a NetworkSink from a filterchain description layed out in the xml setup file, allowing to easily extend functionality.
You will only get a valid object returned if the native DirectShow filters listed in the xml are installed on the runtime system.
 java.lang.String getLocalAddress()
           
 int getPort()
           
 DSFilterInfo getStreamWriterInfo()
           
 void setStreamWriter(DSFilterInfo writerInfo)
           
 void start()
           
 java.lang.String toString()
           
 
Methods inherited from class de.humatic.dsj.sink.Sink
getAudioEncoderInfo, getFlags, getMultiplexerInfo, getOutputPath, getVideoEncoderInfo, getWriterInfo, setAudioEncoder, setFlags, setMultiplexer, setVideoEncoder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

WM_NET

public static final int WM_NET
See Also:
Constant Field Values

WM_PUSH

public static final int WM_PUSH
See Also:
Constant Field Values

DSHOW

public static final int DSHOW
See Also:
Constant Field Values
Constructor Detail

NetworkSink

public NetworkSink(int mt)
Method Detail

start

public void start()

close

public void close()

getLocalAddress

public java.lang.String getLocalAddress()

getPort

public int getPort()

fromXML

public static NetworkSink fromXML(java.lang.String name,
                                  java.lang.String outputPath)
Creates a NetworkSink from a filterchain description layed out in the xml setup file, allowing to easily extend functionality.
You will only get a valid object returned if the native DirectShow filters listed in the xml are installed on the runtime system. (Note that dsj does neither bring any encoding filters nor does it license you to use them or create content of the given type.)
For an example see the dsj.xml file in the demo directory.


setStreamWriter

public void setStreamWriter(DSFilterInfo writerInfo)

getStreamWriterInfo

public DSFilterInfo getStreamWriterInfo()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object