Package com.kurento.kmf.media

Examples of com.kurento.kmf.media.Dispatcher


    MediaPipeline mp = pipelineFactory.create();
    WebRtcEndpoint webRtcEP1 = mp.newWebRtcEndpoint().build();
    HttpGetEndpoint httpEP = mp.newHttpGetEndpoint().terminateOnEOS()
        .build();

    Dispatcher dispatcher = mp.newDispatcher().build();
    HubPort hubPort1 = dispatcher.newHubPort().build();
    HubPort hubPort2 = dispatcher.newHubPort().build();

    webRtcEP1.connect(hubPort1);
    hubPort2.connect(httpEP);

    dispatcher.connect(hubPort1, hubPort2);

    // Test execution
    try (BrowserClient browser1 = new BrowserClient.Builder()
        .browser(browserType).client(Client.WEBRTC).build();
        BrowserClient browser2 = new BrowserClient.Builder()
View Full Code Here


    // Media Pipeline
    MediaPipeline mp = pipelineFactory.create();
    WebRtcEndpoint webRtcEP1 = mp.newWebRtcEndpoint().build();
    WebRtcEndpoint webRtcEP2 = mp.newWebRtcEndpoint().build();

    Dispatcher dispatcher = mp.newDispatcher().build();
    HubPort hubPort1 = dispatcher.newHubPort().build();
    HubPort hubPort2 = dispatcher.newHubPort().build();

    webRtcEP1.connect(hubPort1);
    hubPort2.connect(webRtcEP2);

    dispatcher.connect(hubPort1, hubPort2);

    // Test execution
    try (BrowserClient browser1 = new BrowserClient.Builder()
        .browser(browserType).client(Client.WEBRTC).build();
        BrowserClient browser2 = new BrowserClient.Builder()
View Full Code Here

    PlayerEndpoint playerEP = mp.newPlayerEndpoint(
        "http://files.kurento.org/video/30sec/red.webm").build();
    WebRtcEndpoint webRtcEP = mp.newWebRtcEndpoint().build();

    Dispatcher dispatcher = mp.newDispatcher().build();
    HubPort hubPort1 = dispatcher.newHubPort().build();
    HubPort hubPort2 = dispatcher.newHubPort().build();

    playerEP.connect(hubPort1);
    hubPort2.connect(webRtcEP);

    dispatcher.connect(hubPort1, hubPort2);
    playerEP.play();

    // Test execution
    try (BrowserClient browser = new BrowserClient.Builder()
        .browser(browserType).client(Client.WEBRTC).build()) {
View Full Code Here

TOP

Related Classes of com.kurento.kmf.media.Dispatcher

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.