public void doTest(Browser browserType) throws Exception {
// Media Pipeline
MediaPipeline mp = pipelineFactory.create();
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()) {