Package com.kurento.kmf.media.factory

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


      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

  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

  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

    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

  @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

@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

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

@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

@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

Related Classes of com.kurento.kmf.media.factory.MediaPipelineFactory

Copyright © 2018 www.massapicom. 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.