public class PublisherEndpoint extends IceWebRtcEndpoint implements MediaShapingEndpoint
TrickleIceEndpoint.endpoint| Constructor and Description |
|---|
PublisherEndpoint(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.
|
void |
connect(org.kurento.client.MediaElement other) |
Collection<org.kurento.client.MediaElement> |
getMediaElements() |
protected void |
internalEndpointInitialization(CountDownLatch endpointLatch)
Create the endpoint and any other additional elements (if needed).
|
String |
publish(String sdpOffer,
boolean doLoopback)
Initializes this
WebRtcEndpoint for publishing media. |
void |
revert(org.kurento.client.MediaElement shaper)
Removes the media element object found from the media chain structure.
|
void |
unregisterErrorListeners()
Unregisters all error listeners created for media elements owned by this
instance.
|
addIceCandidate, createEndpoint, gatherCandidates, getEndpoint, getEndpointName, getOwner, getPipeline, processOffer, registerElemErrListener, registerOnIceCandidateEventListener, setEndpointName, setMediaPipeline, unregisterElementErrListenerpublic PublisherEndpoint(Participant owner, String endpointName, org.kurento.client.MediaPipeline pipeline)
protected void internalEndpointInitialization(CountDownLatch endpointLatch)
IceWebRtcEndpointinternalEndpointInitialization in class IceWebRtcEndpointpublic void unregisterErrorListeners()
IceWebRtcEndpointunregisterErrorListeners in class IceWebRtcEndpointpublic Collection<org.kurento.client.MediaElement> getMediaElements()
WebRtcEndpoint)public String publish(String sdpOffer, boolean doLoopback)
WebRtcEndpoint for publishing media. Registers
an event listener for the ICE candidates, instructs the endpoint to start
gathering the candidates and processes the SDP offer. If required, it
connects to itself (after applying the intermediate media elements and
the PassThrough) to allow loopback of the media stream.sdpOffer - offer from the remote peerdoLoopback - loopback flagpublic void connect(org.kurento.client.MediaElement other)
public String apply(org.kurento.client.MediaElement shaper) throws RoomException
MediaShapingEndpointapply in interface MediaShapingEndpointshaper - MediaElement that will be linked to the end of the
chain (e.g. a filter)RoomException - if thrown, the media element was not addedpublic void revert(org.kurento.client.MediaElement shaper)
throws RoomException
MediaShapingEndpointrevert in interface MediaShapingEndpointshaper - MediaElement that will be removed from the chainRoomException - if thrown, the media element was not removedCopyright © 2015 Kurento. All rights reserved.