Red5Pro Android Client SDK

 10.0.0
Core SDK for Android
com.red5pro.streaming.R5Connection Class Reference

Public Member Functions

 R5Connection (R5Configuration configuration)
 
R5Configuration getConfiguration ()
 
void connect (R5Configuration configuration)
 
void call (R5RemoteCallContainer rpc)
 
native void disconnect ()
 
void sharedObjectSend (String message)
 
void connectToSharedObject (String name)
 
void switchStream (String contextName, String streamName)
 
void addListener (R5ConnectionListener listener)
 
void removeListener ()
 
boolean isConnectionActive ()
 

Public Attributes

Object client
 Client object to receive RPC calls.
 
R5Stream stream
 Stream associated with the connection.
 

Protected Member Functions

native void call (Object stream, R5RemoteCallContainer rpc)
 
native void sharedObjectSend (Object stream, R5RemoteCallContainer rpc)
 
native void switchStreamSend (R5Stream stream, String streamPath)
 

Constructor & Destructor Documentation

◆ R5Connection()

com.red5pro.streaming.R5Connection.R5Connection ( R5Configuration  configuration)
inline

Create new connection object

Parameters
configurationConfiguration parameters for the connection

Member Function Documentation

◆ addListener()

void com.red5pro.streaming.R5Connection.addListener ( R5ConnectionListener  listener)
inline

Set listener for R5Connection events

Parameters
listener

◆ call() [1/2]

native void com.red5pro.streaming.R5Connection.call ( Object  stream,
R5RemoteCallContainer  rpc 
)
protected

Native call to make RPC call on server

Parameters
streamStream to call through
rpcRPC to make the call

◆ call() [2/2]

void com.red5pro.streaming.R5Connection.call ( R5RemoteCallContainer  rpc)
inline

Make an RPC call on the connection

Parameters
rpcRPC to send to the server

◆ connect()

void com.red5pro.streaming.R5Connection.connect ( R5Configuration  configuration)
inline

Establish a socket connection with the connection (called internally)

Parameters
configurationConfiguration for the connection

◆ connectToSharedObject()

void com.red5pro.streaming.R5Connection.connectToSharedObject ( String  name)
inline

Request to connect to remote Shared Object on server.

Parameters
nameThe name of te Shared Object to connect to.

◆ disconnect()

native void com.red5pro.streaming.R5Connection.disconnect ( )

Disconnect the connection

◆ getConfiguration()

R5Configuration com.red5pro.streaming.R5Connection.getConfiguration ( )
inline

Get the configuration object associated with this connection

Returns
the configuration for the connection

◆ removeListener()

void com.red5pro.streaming.R5Connection.removeListener ( )
inline

Remove the listener

◆ sharedObjectSend() [1/2]

native void com.red5pro.streaming.R5Connection.sharedObjectSend ( Object  stream,
R5RemoteCallContainer  rpc 
)
protected

Send a Shared Object message

Parameters
streamStream to call through
rpcRPC to make the call

◆ sharedObjectSend() [2/2]

void com.red5pro.streaming.R5Connection.sharedObjectSend ( String  message)
inline

Send a Shared Object message

Parameters
messageinformation to send to the server

◆ switchStream()

void com.red5pro.streaming.R5Connection.switchStream ( String  contextName,
String  streamName 
)
inline

Request the server to change the currently delivered stream to another. Subscriber Only.

Parameters
contextNameString The webapp context name, e.g. "live"
streamNameString The stream name to switch subscription to.

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