|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jivesoftware.smackx.jingle.JingleNegotiator
org.jivesoftware.smackx.jingle.media.MediaNegotiator
public class MediaNegotiator
Manager for jmf descriptor negotiation.
This class is responsible for managing the descriptor negotiation process, handling all the xmpp packets interchange and the stage control. handling all the xmpp packets interchange and the stage control.
| Constructor Summary | |
|---|---|
MediaNegotiator(JingleSession session,
JingleMediaManager mediaManager,
java.util.List<PayloadType> pts,
ContentNegotiator parentNegotiator)
Default constructor. |
|
| Method Summary | |
|---|---|
void |
addRemoteAudioPayloadType(PayloadType.Audio pt)
Adds a payload type to the list of remote payloads. |
void |
close()
Terminate the jmf negotiator |
java.util.List<IQ> |
dispatchIncomingPacket(IQ iq,
java.lang.String id)
Dispatch an incoming packet. |
PayloadType |
getBestCommonAudioPt()
Get the best common codec between both parts. |
JingleDescription |
getJingleDescription()
Create a JingleDescription that matches this negotiator. |
JingleMediaManager |
getMediaManager()
Return The media manager for this negotiator. |
boolean |
isEstablished()
Return true if the content is negotiated. |
boolean |
isFullyEstablished()
Return true if the content is fully negotiated. |
| Methods inherited from class org.jivesoftware.smackx.jingle.JingleNegotiator |
|---|
addExpectedId, addListener, getConnection, getNegotiatorState, getSession, isExpectedId, isStarted, removeExpectedId, removeListener, setNegotiatorState, setSession, start |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MediaNegotiator(JingleSession session,
JingleMediaManager mediaManager,
java.util.List<PayloadType> pts,
ContentNegotiator parentNegotiator)
js - The jingle session.| Method Detail |
|---|
public JingleMediaManager getMediaManager()
public java.util.List<IQ> dispatchIncomingPacket(IQ iq,
java.lang.String id)
throws XMPPException
dispatchIncomingPacket in class JingleNegotiatoriq - the packet receivedid - the ID of the response that will be sent
XMPPExceptionpublic boolean isEstablished()
public boolean isFullyEstablished()
public void addRemoteAudioPayloadType(PayloadType.Audio pt)
pt - the remote payload typepublic PayloadType getBestCommonAudioPt()
public void close()
close in class JingleNegotiatorpublic JingleDescription getJingleDescription()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||