Kurento Playerendpoint with composite or OneToManyDispatcher example

34 views
Skip to first unread message

Rahim noushad

unread,
Jun 20, 2019, 12:54:04 AM6/20/19
to kurento
Can any one provide me the example or how to make a demo in kurento that i can play 4 video in playerendpoint using composite hub

Here is i am trying to do this help me if this is wrong i am seeing the black screen but video doesnot play

final PlayerEndpoint playerEndpoint1 = new PlayerEndpoint.Builder(pipeline,

"https://giant.gfycat.com/ShoddyInconsequentialElephantbeetle.webm").build();

final PlayerEndpoint playerEndpoint2 = new PlayerEndpoint.Builder(pipeline,

"https://giant.gfycat.com/UnlinedScornfulAcornweevil.webm").build();

final PlayerEndpoint playerEndpoint3 = new PlayerEndpoint.Builder(pipeline,

"https://giant.gfycat.com/UnlinedScornfulAcornweevil.webm").build();

final PlayerEndpoint playerEndpoint4 = new PlayerEndpoint.Builder(pipeline,

"https://giant.gfycat.com/UnlinedScornfulAcornweevil.webm").build();


Composite com = new Composite.Builder(pipeline).build();

HubPort hub1 = new HubPort.Builder(com).build();

HubPort hub2 = new HubPort.Builder(com).build();

HubPort hub3 = new HubPort.Builder(com).build();

HubPort hub4 = new HubPort.Builder(com).build();

HubPort hub5 = new HubPort.Builder(com).build();


playerEndpoint1.connect(hub1);

playerEndpoint2.connect(hub2);
playerEndpoint3.connect(hub3);
playerEndpoint4.connect(hub4);
hub5.connect(webRtcEndpoint);

playerEndpoint1.play();
playerEndpoint2.play();
playerEndpoint3.play();
playerEndpoint4.play();


Reply all
Reply to author
Forward
0 new messages