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 ConferenceClient. More...

Inheritance diagram for Publication:
Collaboration diagram for Publication:

Public Member Functions

void addObserver (PublicationObserver observer)
 Add a PublicationObserver. More...
 
void removeObserver (PublicationObserver observer)
 Remove a PublicationObserver. More...
 
void mute (final TrackKind trackKind, final ActionCallback< Void > callback)
 Stop sending the media track data to conference. More...
 
void unmute (final TrackKind trackKind, final ActionCallback< Void > callback)
 Start to send the media track data that has been stopped before to conference. More...
 
void getStats (final ActionCallback< RTCStatsReport > callback)
 Get the PeerConnection stats. More...
 
void stop ()
 Stop publishing the LocalStream associated with the Publication to the conference.
 
- 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 ConferenceClient.

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.
void mute ( final TrackKind  trackKind,
final ActionCallback< Void >  callback 
)
inline

Stop sending the media track data to conference.

Parameters
trackKindTrackKind of the media to be stopped.
callbackActionCallback.onSuccess will be invoked when succeeds to mute. Otherwise when fails to do so, ActionCallback.onFailure will be invoked with the corresponding OwtError.

Here is the call graph for this function:

Here is the caller graph for this function:

void removeObserver ( PublicationObserver  observer)
inline

Remove a PublicationObserver.

Parameters
observerPublicationObserver to be removed.
void unmute ( final TrackKind  trackKind,
final ActionCallback< Void >  callback 
)
inline

Start to send the media track data that has been stopped before to conference.

Parameters
trackKindTrackKind of the media to be started.
callbackActionCallback.onSuccess will be invoked when succeeds to unmute. Otherwise when fails to do so, ActionCallback.onFailure will be invoked with the corresponding OwtError.

Here is the call graph for this function: