|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.humatic.dsj.sink.sa.StreamAnnouncement
public class StreamAnnouncement
Baseclass for stream announcements as used with the RTPSink class. dsj contains implementations that directly output .sdp files, announce a stream via SAP or initiate pushing a stream to a Darwin or QTSS server, see createForType(..) for details.
| Field Summary | |
|---|---|
static int |
DARWIN_PUSH
|
static int |
SAP
|
static int |
SDP
|
| Method Summary | |
|---|---|
void |
close()
Called by the RTPSink on shutdown to make StreamAnnouncements free all resources they have instantiated. |
void |
createAnnouncement(java.lang.String sdpInfo)
|
void |
createAnnouncement(java.lang.String sdpInfo,
int[] params)
Called by the RTPSink to trigger the announcement process. |
static StreamAnnouncement |
createForType(int type,
java.lang.String target)
Returns a dedicated subclass according to the type parameter, announcing a stream to %target: To create an .sdp file use createForType(StreamAnnouncement.SDP, sdp_filepath), where filepath can be absolute or relative to the cwd. SAP announcements (see rfc 2974) are created using createForType(StreamAnnouncement.SAP, null), where the target parameter can optionally take an other than the default SAP (224.2.127.254:9875) IP and port combination. |
java.lang.String |
getKeyValue(java.lang.String key)
|
int |
getServerPort(int index)
Returns server picked RTP and RTCP ports for DARWIN_PUSH announcemnets set up without port preferences. |
java.lang.String |
getTarget()
|
int |
getType()
|
void |
setParameter(java.lang.String key,
java.lang.String value)
Used to set additional parameters after construction and before passing the announcement to the sink. |
void |
setSocket(java.net.Socket socket)
The sink may pass in the socket to use by the StreamAnnouncement here before calling createAnnouncement.. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SDP
public static final int SAP
public static final int DARWIN_PUSH
| Method Detail |
|---|
public static StreamAnnouncement createForType(int type,
java.lang.String target)
throws java.lang.Exception
java.lang.Exceptionpublic int getType()
public void close()
public void setParameter(java.lang.String key,
java.lang.String value)
public java.lang.String getKeyValue(java.lang.String key)
public java.lang.String getTarget()
public int getServerPort(int index)
public void setSocket(java.net.Socket socket)
public void createAnnouncement(java.lang.String sdpInfo,
int[] params)
throws java.lang.Exception
java.lang.Exception
public void createAnnouncement(java.lang.String sdpInfo)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||