Examples of MediaPipelineFactory


Examples of com.kurento.kmf.media.factory.MediaPipelineFactory

  private String url = "";

  @Override
  public void onContentRequest(final HttpPlayerSession session)
      throws Exception {
    MediaPipelineFactory mpf = session.getMediaPipelineFactory();
    MediaPipeline mp = mpf.create();
    session.releaseOnTerminate(mp);

    PlayerEndpoint playerEndpoint = mp.newPlayerEndpoint(

    VideoURLs.map.get("zbar")).build();
View Full Code Here

Examples of com.kurento.kmf.media.factory.MediaPipelineFactory

      String url = VideoURLs.map.get("small-webm");
      if (contentId != null && VideoURLs.map.containsKey(contentId)) {
        url = VideoURLs.map.get(contentId);
      }

      MediaPipelineFactory mpf = session.getMediaPipelineFactory();
      MediaPipeline mp = mpf.create();
      session.releaseOnTerminate(mp);
      PlayerEndpoint playerEndpoint = mp.newPlayerEndpoint(url).build();
      HttpGetEndpoint httpEP = mp.newHttpGetEndpoint().terminateOnEOS()
          .build();
      if (contentId != null && contentId.equalsIgnoreCase("jack")) {
View Full Code Here

Examples of com.kurento.kmf.media.factory.MediaPipelineFactory

  public void onContentRequest(final HttpPlayerSession contentSession)
      throws Exception {
    EventListener.clearEventList();
    EventListener.addEvent();

    MediaPipelineFactory mpf = contentSession.getMediaPipelineFactory();
    MediaPipeline mp = mpf.create();
    contentSession.releaseOnTerminate(mp);
    PlayerEndpoint playerEndpoint = mp.newPlayerEndpoint("").build();
    contentSession.setAttribute("player", playerEndpoint);
    HttpGetEndpoint httpEP = mp.newHttpGetEndpoint().terminateOnEOS()
        .build();
View Full Code Here

Examples of com.kurento.kmf.media.factory.MediaPipelineFactory

  public void onContentRequest(final HttpPlayerSession contentSession)
      throws Exception {
    EventListener.clearEventList();
    EventListener.addEvent();

    MediaPipelineFactory mpf = contentSession.getMediaPipelineFactory();
    MediaPipeline mp = mpf.create();
    contentSession.releaseOnTerminate(mp);
    PlayerEndpoint playerEndpoint = mp.newPlayerEndpoint(
        VideoURLs.map.get("webm")).build();
    contentSession.setAttribute("player", playerEndpoint);
    HttpGetEndpoint httpEP = mp.newHttpGetEndpoint().terminateOnEOS()
View Full Code Here

Examples of com.kurento.kmf.media.factory.MediaPipelineFactory

    HubPort mixerPort3;
    PlayerEndpoint player1;
    PlayerEndpoint player2;
    GStreamerFilter bn;

    MediaPipelineFactory mpf = contentSession.getMediaPipelineFactory();
    mediaPipeline = mpf.create();
    contentSession.releaseOnTerminate(mediaPipeline);
    player1 = mediaPipeline.newPlayerEndpoint(
        VideoURLs.map.get("small-mp4")).build();
    player2 = mediaPipeline.newPlayerEndpoint(
        VideoURLs.map.get("small-mp4")).build();
View Full Code Here

Examples of com.kurento.kmf.media.factory.MediaPipelineFactory

  @Override
  public void onContentRequest(final HttpPlayerSession session)
      throws Exception {

    MediaPipelineFactory mpf = session.getMediaPipelineFactory();
    MediaPipeline mp = mpf.create();

    PlayerEndpoint player = mp.newPlayerEndpoint(
        "http://files.kurento.org/video/barcodes.webm").build();
    session.setAttribute("player", player);
View Full Code Here

Examples of com.kurento.kmf.media.factory.MediaPipelineFactory

@HttpPlayerService(name = "PlayerJsonFilter", path = "/playerJsonFilter", redirect = true, useControlProtocol = true)
public class PlayerJsonJackVader extends HttpPlayerHandler {

  @Override
  public void onContentRequest(HttpPlayerSession session) throws Exception {
    MediaPipelineFactory mpf = session.getMediaPipelineFactory();
    MediaPipeline mp = mpf.create();
    session.releaseOnTerminate(mp);
    PlayerEndpoint playerEndpoint = mp.newPlayerEndpoint(
        "http://files.kurento.org/video/fiwarecut.webm").build();
    JackVaderFilter filter = mp.newJackVaderFilter().build();
    playerEndpoint.connect(filter);
View Full Code Here

Examples of com.kurento.kmf.media.factory.MediaPipelineFactory

public class HelloWorldKurento {

  public static void main(String[] args) throws InterruptedException,
      IOException, URISyntaxException {

    MediaPipelineFactory kurento = KmfMediaApi
        .createMediaPipelineFactoryFromSystemProps();

    MediaPipeline pipeline = kurento.create();

    PlayerEndpoint player = pipeline.newPlayerEndpoint(
        "http://files.kurento.org/video/fiwarecut.mp4").build();
    // player.addEndOfStreamListener(new
    // MediaEventListener<EndOfStreamEvent>() {
View Full Code Here

Examples of com.kurento.kmf.media.factory.MediaPipelineFactory

@HttpPlayerService(name = "PlayerJonJackVaderHandler", path = "/playerJsonJackVader", useControlProtocol = true)
public class PlayerJsonJackVaderHandler extends HttpPlayerHandler {

  @Override
  public void onContentRequest(HttpPlayerSession session) throws Exception {
    MediaPipelineFactory mpf = session.getMediaPipelineFactory();
    MediaPipeline mp = mpf.create();
    session.releaseOnTerminate(mp);

    PlayerEndpoint playerEndpoint = mp.newPlayerEndpoint(
        VideoURLs.map.get("jack")).build();
    JackVaderFilter filter = mp.newJackVaderFilter().build();
View Full Code Here

Examples of com.kurento.kmf.media.factory.MediaPipelineFactory

@HttpPlayerService(name = "PlayerJackVader", path = "/playerHttpJackVader", useControlProtocol = false, redirect = true)
public class PlayerJackVaderHandler extends HttpPlayerHandler {

  @Override
  public void onContentRequest(HttpPlayerSession session) throws Exception {
    MediaPipelineFactory mpf = session.getMediaPipelineFactory();
    MediaPipeline mp = mpf.create();
    session.releaseOnTerminate(mp);
    PlayerEndpoint playerEndpoint = mp.newPlayerEndpoint(
        VideoURLs.map.get("jack")).build();
    JackVaderFilter filter = mp.newJackVaderFilter().build();
    playerEndpoint.connect(filter);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.