public class ICETransportManager extends JingleTransportManager implements JingleSessionListener, CreatedJingleSessionListener
Constructor and Description |
---|
ICETransportManager(XMPPConnection xmppConnection,
String server,
int port) |
Modifier and Type | Method and Description |
---|---|
protected TransportResolver |
createResolver(JingleSession session)
Create a Transport Resolver instance according to the implementation.
|
void |
sessionClosed(String reason,
JingleSession jingleSession)
Notification that the session was closed normally.
|
void |
sessionClosedOnError(XMPPException e,
JingleSession jingleSession)
Notification that the session was closed due to an exception.
|
void |
sessionCreated(JingleSession jingleSession) |
void |
sessionDeclined(String reason,
JingleSession jingleSession)
Notification that the session was declined.
|
void |
sessionEstablished(PayloadType pt,
TransportCandidate rc,
TransportCandidate lc,
JingleSession jingleSession)
Notification that the session has been established.
|
void |
sessionMediaReceived(JingleSession jingleSession,
String participant)
Notification that the Media has arrived for this session.
|
void |
sessionRedirected(String redirection,
JingleSession jingleSession)
Notification that the session was redirected.
|
getResolver
public ICETransportManager(XMPPConnection xmppConnection, String server, int port)
protected TransportResolver createResolver(JingleSession session) throws SmackException, InterruptedException
JingleTransportManager
createResolver
in class JingleTransportManager
InterruptedException
SmackException
public void sessionEstablished(PayloadType pt, TransportCandidate rc, TransportCandidate lc, JingleSession jingleSession) throws SmackException.NotConnectedException, InterruptedException
JingleSessionListener
sessionEstablished
in interface JingleSessionListener
pt
- the Payload tyep to userc
- the remote candidate to use for connecting to the remote
service.lc
- the local candidate where we must listen for connectionsjingleSession
- Session that called the methodSmackException.NotConnectedException
InterruptedException
public void sessionDeclined(String reason, JingleSession jingleSession)
JingleSessionListener
sessionDeclined
in interface JingleSessionListener
reason
- the reason (if any).jingleSession
- Session that called the methodpublic void sessionRedirected(String redirection, JingleSession jingleSession)
JingleSessionListener
sessionRedirected
in interface JingleSessionListener
jingleSession
- session that called the methodpublic void sessionClosed(String reason, JingleSession jingleSession)
JingleSessionListener
sessionClosed
in interface JingleSessionListener
reason
- the reason (if any).jingleSession
- Session that called the methodpublic void sessionClosedOnError(XMPPException e, JingleSession jingleSession)
JingleSessionListener
sessionClosedOnError
in interface JingleSessionListener
e
- the exception.jingleSession
- session that called the methodpublic void sessionMediaReceived(JingleSession jingleSession, String participant)
JingleSessionListener
sessionMediaReceived
in interface JingleSessionListener
jingleSession
- session that called the methodparticipant
- description of the participantpublic void sessionCreated(JingleSession jingleSession)
sessionCreated
in interface CreatedJingleSessionListener