public class PublisherEndpoint extends MediaEndpoint
MediaEndpoint.| Constructor and Description |
|---|
PublisherEndpoint(boolean web,
boolean dataChannels,
Participant owner,
String endpointName,
org.kurento.client.MediaPipeline pipeline) |
| Modifier and Type | Method and Description |
|---|---|
String |
apply(org.kurento.client.MediaElement shaper)
Changes the media passing through a chain of media elements by applying the specified
element/shaper.
|
String |
apply(org.kurento.client.MediaElement shaper,
org.kurento.client.MediaType type)
Same as
apply(MediaElement), can specify the media type that will be streamed through
the shaper element. |
void |
connect(org.kurento.client.MediaElement sink) |
void |
connect(org.kurento.client.MediaElement sink,
org.kurento.client.MediaType type) |
void |
disconnectFrom(org.kurento.client.MediaElement sink) |
void |
disconnectFrom(org.kurento.client.MediaElement sink,
org.kurento.client.MediaType type) |
Collection<org.kurento.client.MediaElement> |
getMediaElements() |
protected void |
internalEndpointInitialization(CountDownLatch endpointLatch)
Creates the endpoint (RTP or WebRTC) and any other additional elements (if needed).
|
void |
mute(MutedMediaType muteType)
Mute the media stream.
|
String |
preparePublishConnection() |
String |
publish(SdpType sdpType,
String sdpString,
boolean doLoopback,
org.kurento.client.MediaElement loopbackAlternativeSrc,
org.kurento.client.MediaType loopbackConnectionType)
Initializes this media endpoint for publishing media and processes the SDP offer or answer.
|
void |
revert(org.kurento.client.MediaElement shaper)
Removes the media element object found from the media chain structure.
|
void |
unmute()
Reconnect the muted media leg(s).
|
void |
unregisterErrorListeners()
Unregisters all error listeners created for media elements owned by this instance.
|
addIceCandidate, createEndpoint, gatherCandidates, generateOffer, getEndpoint, getEndpointName, getMuteType, getOwner, getPipeline, getRtpEndpoint, getWebEndpoint, isWeb, processAnswer, processOffer, registerElemErrListener, registerOnIceCandidateEventListener, resolveCurrentMuteType, setEndpointName, setMediaPipeline, setMuteType, unregisterElementErrListenerpublic PublisherEndpoint(boolean web,
boolean dataChannels,
Participant owner,
String endpointName,
org.kurento.client.MediaPipeline pipeline)
protected void internalEndpointInitialization(CountDownLatch endpointLatch)
MediaEndpointinternalEndpointInitialization in class MediaEndpointpublic void unregisterErrorListeners()
MediaEndpointunregisterErrorListeners in class MediaEndpointpublic Collection<org.kurento.client.MediaElement> getMediaElements()
WebRtcEndpoint)public String publish(SdpType sdpType, String sdpString, boolean doLoopback, org.kurento.client.MediaElement loopbackAlternativeSrc, org.kurento.client.MediaType loopbackConnectionType)
WebRtcEndpoint, it first registers an event listener for
the ICE candidates and instructs the endpoint to start gathering the candidates. If required,
it connects to itself (after applying the intermediate media elements and the
PassThrough) to allow loopback of the media stream.sdpType - indicates the type of the sdpString (offer or answer)sdpString - offer or answer from the remote peerdoLoopback - loopback flagloopbackAlternativeSrc - alternative loopback sourceloopbackConnectionType - how to connect the loopback sourcepublic String preparePublishConnection()
public void connect(org.kurento.client.MediaElement sink)
public void connect(org.kurento.client.MediaElement sink,
org.kurento.client.MediaType type)
public void disconnectFrom(org.kurento.client.MediaElement sink)
public void disconnectFrom(org.kurento.client.MediaElement sink,
org.kurento.client.MediaType type)
public String apply(org.kurento.client.MediaElement shaper) throws RoomException
shaper - MediaElement that will be linked to the end of the chain (e.g. a filter)RoomException - if thrown, the media element was not addedpublic String apply(org.kurento.client.MediaElement shaper, org.kurento.client.MediaType type) throws RoomException
apply(MediaElement), can specify the media type that will be streamed through
the shaper element.shaper - MediaElement that will be linked to the end of the chain (e.g. a filter)type - indicates which type of media will be connected to the shaper (MediaType), if
null then the connection is mixedRoomException - if thrown, the media element was not addedpublic void revert(org.kurento.client.MediaElement shaper)
throws RoomException
shaper - MediaElement that will be removed from the chainRoomException - if thrown, the media element was not removedpublic void mute(MutedMediaType muteType)
MediaEndpointmute in class MediaEndpointmuteType - which type of leg to disconnect (audio, video or both)public void unmute()
MediaEndpointunmute in class MediaEndpointCopyright © 2016 Kurento. All rights reserved.