public class KurentoRoomClient extends Object
| Constructor and Description |
|---|
KurentoRoomClient(org.kurento.jsonrpc.client.JsonRpcClient client) |
KurentoRoomClient(org.kurento.jsonrpc.client.JsonRpcClient client,
ServerJsonRpcHandler handler) |
KurentoRoomClient(String wsUri) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
com.google.gson.JsonElement |
customRequest(com.google.gson.JsonObject customReqParams) |
Notification |
getServerNotification()
Polls the notifications list maintained by this client to obtain new
events sent by server.
|
Map<String,List<String>> |
joinRoom(String roomName,
String userName) |
void |
leaveRoom() |
void |
onIceCandidate(String endpointName,
String candidate,
String sdpMid,
int sdpMLineIndex) |
String |
publishVideo(String sdpOffer,
boolean doLoopback) |
String |
receiveVideoFrom(String sender,
String sdpOffer) |
void |
sendMessage(String userName,
String roomName,
String message) |
void |
unpublishVideo() |
void |
unsubscribeFromVideo(String sender) |
public KurentoRoomClient(String wsUri)
public KurentoRoomClient(org.kurento.jsonrpc.client.JsonRpcClient client)
public KurentoRoomClient(org.kurento.jsonrpc.client.JsonRpcClient client,
ServerJsonRpcHandler handler)
public void close()
throws IOException
IOExceptionpublic Map<String,List<String>> joinRoom(String roomName, String userName) throws IOException
IOExceptionpublic void leaveRoom()
throws IOException
IOExceptionpublic String publishVideo(String sdpOffer, boolean doLoopback) throws IOException
IOExceptionpublic void unpublishVideo()
throws IOException
IOExceptionpublic String receiveVideoFrom(String sender, String sdpOffer) throws IOException
IOExceptionpublic void unsubscribeFromVideo(String sender) throws IOException
IOExceptionpublic void onIceCandidate(String endpointName, String candidate, String sdpMid, int sdpMLineIndex) throws IOException
IOExceptionpublic void sendMessage(String userName, String roomName, String message) throws IOException
IOExceptionpublic com.google.gson.JsonElement customRequest(com.google.gson.JsonObject customReqParams)
throws IOException
IOExceptionpublic Notification getServerNotification()
Copyright © 2015 Kurento. All rights reserved.