de.humatic.dsj.sink
Class NetworkSink
java.lang.Object
de.humatic.dsj.sink.Sink
de.humatic.dsj.sink.NetworkSink
- Direct Known Subclasses:
- WMSink
public class NetworkSink
- extends Sink
Base class for network sinks.
| 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
NetworkSink
public NetworkSink(int mt)
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