Intel® Collaboration Suite for WebRTC  version 4.3
Open WebRTC Toolkit (OWT) Client SDK for Android*
Publication Class Reference

Publication handles the actions on a LocalStream published by a P2PClient. More...

Inheritance diagram for Publication:
Collaboration diagram for Publication:

Classes

interface  PublicationObserver
 Interface for observing publication events. More...
 

Public Member Functions

void addObserver (PublicationObserver observer)
 Add a PublicationObserver. More...
 
void removeObserver (PublicationObserver observer)
 Remove a PublicationObserver. More...
 
void getStats (final ActionCallback< RTCStatsReport > callback)
 Get the PeerConnection stats. More...
 
void stop ()
 Stop publishing the LocalStream associated with the Publication to the remote P2PClient.
 
- Public Member Functions inherited from Publication
String id ()
 
abstract void getStats (ActionCallback< RTCStatsReport > callback)
 
abstract void stop ()
 

Detailed Description

Publication handles the actions on a LocalStream published by a P2PClient.

Member Function Documentation

void addObserver ( PublicationObserver  observer)
inline

Add a PublicationObserver.

Parameters
observerPublicationObserver to be added.
void getStats ( final ActionCallback< RTCStatsReport >  callback)
inline

Get the PeerConnection stats.

Parameters
callbackActionCallback.onSuccess will be invoked with RTCStatsReport when succeeds to get the stats. Otherwise when fails to do so, ActionCallback.onFailure will be invoked with the corresponding OwtError.

Here is the call graph for this function:

void removeObserver ( PublicationObserver  observer)
inline

Remove a PublicationObserver.

Parameters
observerPublicationObserver to be removed.