webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Classes | Public Member Functions | List of all members
org.appspot.apprtc.DirectRTCClient Class Reference
Inheritance diagram for org.appspot.apprtc.DirectRTCClient:
org.appspot.apprtc.AppRTCClient org.appspot.apprtc.TCPChannelClient.TCPChannelEvents

Public Member Functions

 DirectRTCClient (SignalingEvents events)
 
void connectToRoom (RoomConnectionParameters connectionParameters)
 
void disconnectFromRoom ()
 
void sendOfferSdp (final SessionDescription sdp)
 
void sendAnswerSdp (final SessionDescription sdp)
 
void sendLocalIceCandidate (final IceCandidate candidate)
 
void sendLocalIceCandidateRemovals (final IceCandidate[] candidates)
 
void onTCPConnected (boolean isServer)
 
void onTCPMessage (String msg)
 
void onTCPError (String description)
 
void onTCPClose ()
 

Detailed Description

Implementation of AppRTCClient that uses direct TCP connection as the signaling channel. This eliminates the need for an external server. This class does not support loopback connections.

Constructor & Destructor Documentation

◆ DirectRTCClient()

org.appspot.apprtc.DirectRTCClient.DirectRTCClient ( SignalingEvents  events)
inline

Member Function Documentation

◆ connectToRoom()

void org.appspot.apprtc.DirectRTCClient.connectToRoom ( RoomConnectionParameters  connectionParameters)
inline

Connects to the room, roomId in connectionsParameters is required. roomId must be a valid IP address matching IP_PATTERN.

Implements org.appspot.apprtc.AppRTCClient.

◆ disconnectFromRoom()

void org.appspot.apprtc.DirectRTCClient.disconnectFromRoom ( )
inline

Disconnect from room.

Implements org.appspot.apprtc.AppRTCClient.

◆ onTCPClose()

void org.appspot.apprtc.DirectRTCClient.onTCPClose ( )
inline

◆ onTCPConnected()

void org.appspot.apprtc.DirectRTCClient.onTCPConnected ( boolean  isServer)
inline

If the client is the server side, this will trigger onConnectedToRoom.

Implements org.appspot.apprtc.TCPChannelClient.TCPChannelEvents.

◆ onTCPError()

void org.appspot.apprtc.DirectRTCClient.onTCPError ( String  description)
inline

◆ onTCPMessage()

void org.appspot.apprtc.DirectRTCClient.onTCPMessage ( String  msg)
inline

◆ sendAnswerSdp()

void org.appspot.apprtc.DirectRTCClient.sendAnswerSdp ( final SessionDescription  sdp)
inline

Send answer SDP to the other participant.

Implements org.appspot.apprtc.AppRTCClient.

◆ sendLocalIceCandidate()

void org.appspot.apprtc.DirectRTCClient.sendLocalIceCandidate ( final IceCandidate  candidate)
inline

Send Ice candidate to the other participant.

Implements org.appspot.apprtc.AppRTCClient.

◆ sendLocalIceCandidateRemovals()

void org.appspot.apprtc.DirectRTCClient.sendLocalIceCandidateRemovals ( final IceCandidate []  candidates)
inline

Send removed Ice candidates to the other participant.

Implements org.appspot.apprtc.AppRTCClient.

◆ sendOfferSdp()

void org.appspot.apprtc.DirectRTCClient.sendOfferSdp ( final SessionDescription  sdp)
inline

Send offer SDP to the other participant.

Implements org.appspot.apprtc.AppRTCClient.


The documentation for this class was generated from the following file: