org.kurento.client.PlayerEndpoint Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kurento-client Show documentation
Show all versions of kurento-client Show documentation
Kurento Client
The Kurento Client project allows server applications to control media server resources.
/**
* This file is generated with Kurento-maven-plugin.
* Please don't edit.
*/
package org.kurento.client;
/**
*
* Retrieves content from seekable sources in reliable
* mode (does not discard media information) and inject
* them into KMS. It
* contains one :rom:cls:`MediaSource` for each media type detected.
*
**/
@org.kurento.client.internal.RemoteClass
public interface PlayerEndpoint extends UriEndpoint {
org.kurento.client.VideoInfo getVideoInfo();
void getVideoInfo(Continuation cont);
TFuture getVideoInfo(Transaction tx);
long getPosition();
void getPosition(Continuation cont);
TFuture getPosition(Transaction tx);
void setPosition(@org.kurento.client.internal.server.Param("position") long position);
void setPosition(@org.kurento.client.internal.server.Param("position") long position, Continuation cont);
void setPosition(@org.kurento.client.internal.server.Param("position") long position, Transaction tx);
/**
*
* Starts to send data to the endpoint :rom:cls:`MediaSource`
*
**/
void play();
/**
*
* Asynchronous version of play:
* {@link Continuation#onSuccess} is called when the action is
* done. If an error occurs, {@link Continuation#onError} is called.
* @see PlayerEndpoint#play
*
**/
void play(Continuation cont);
/**
*
* Starts to send data to the endpoint :rom:cls:`MediaSource`
*
**/
void play(Transaction tx);
/**
* Add a {@link EventListener} for event {@link EndOfStreamEvent}. Synchronous call.
*
* @param listener Listener to be called on EndOfStreamEvent
* @return ListenerSubscription for the given Listener
*
**/
@org.kurento.client.internal.server.EventSubscription(EndOfStreamEvent.class)
ListenerSubscription addEndOfStreamListener(EventListener listener);
/**
* Add a {@link EventListener} for event {@link EndOfStreamEvent}. Asynchronous call.
* Calls Continuation<ListenerSubscription> when it has been added.
*
* @param listener Listener to be called on EndOfStreamEvent
* @param cont Continuation to be called when the listener is registered
*
**/
@org.kurento.client.internal.server.EventSubscription(EndOfStreamEvent.class)
void addEndOfStreamListener(EventListener listener, Continuation cont);
/**
* Remove a {@link ListenerSubscription} for event {@link EndOfStreamEvent}. Synchronous call.
*
* @param listenerSubscription Listener subscription to be removed
*
**/
@org.kurento.client.internal.server.EventSubscription(EndOfStreamEvent.class)
void removeEndOfStreamListener(ListenerSubscription listenerSubscription);
/**
* Remove a {@link ListenerSubscription} for event {@link EndOfStreamEvent}. Asynchronous call.
* Calls Continuation<Void> when it has been removed.
*
* @param listenerSubscription Listener subscription to be removed
* @param cont Continuation to be called when the listener is removed
*
**/
@org.kurento.client.internal.server.EventSubscription(EndOfStreamEvent.class)
void removeEndOfStreamListener(ListenerSubscription listenerSubscription, Continuation cont);
public class Builder extends AbstractBuilder {
/**
*
* Creates a Builder for PlayerEndpoint
*
**/
public Builder(org.kurento.client.MediaPipeline mediaPipeline, String uri){
super(PlayerEndpoint.class,mediaPipeline);
props.add("mediaPipeline",mediaPipeline);
props.add("uri",uri);
}
/**
*
* use encoded instead of raw media. If the parameter is false then the
* element uses raw media. Changing this parameter can affect stability
* severely, as lost key frames lost will not be regenerated. Changing the media type does not
* affect to the result except in the performance (just in the case where
* original media and target media are the same) and in the problem with the
* key frames. We strongly recommended not to use this parameter because
* correct behaviour is not guarantied.
*
**/
public Builder useEncodedMedia(){
props.add("useEncodedMedia",Boolean.TRUE);
return this;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy