本文整理匯總了Java中org.kurento.client.ServerManager類的典型用法代碼示例。如果您正苦於以下問題:Java ServerManager類的具體用法?Java ServerManager怎麽用?Java ServerManager使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ServerManager類屬於org.kurento.client包,在下文中一共展示了ServerManager類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: testSameInstance
import org.kurento.client.ServerManager; //導入依賴的package包/類
@Test
public void testSameInstance() throws InterruptedException {
ServerManager server = kurentoClient.getServerManager();
ServerManager server2 = kurentoClient.getServerManager();
assertThat(server, IsSame.sameInstance(server2));
}
示例2: crunchKms
import org.kurento.client.ServerManager; //導入依賴的package包/類
private void crunchKms(KurentoClient kurentoClient) {
ServerManager serverManager = kurentoClient.getServerManager();
List<MediaPipeline> mediaPipelines = serverManager.getPipelines();
numPipelines.addSample(mediaPipelines.size());
for (MediaPipeline p : mediaPipelines) {
crunchPipeline(p);
}
}
示例3: readPipelines
import org.kurento.client.ServerManager; //導入依賴的package包/類
@Test
public void readPipelines() {
MediaPipeline pipeline = kurentoClient.createMediaPipeline();
ServerManager serverManager = kurentoClient.getServerManager();
List<MediaPipeline> mediaPipelines = serverManager.getPipelines();
for (MediaPipeline p : mediaPipelines) {
String gstreamerDot = p.getGstreamerDot();
System.out.println(p.getId() + ": " + gstreamerDot);
}
assertTrue(mediaPipelines.contains(pipeline));
}
示例4: getServerManager
import org.kurento.client.ServerManager; //導入依賴的package包/類
public ServerManager getServerManager() {
serverManager = kurentoClient.getServerManager();
return serverManager;
}
示例5: readPipelineElements
import org.kurento.client.ServerManager; //導入依賴的package包/類
@Test
public void readPipelineElements() throws IOException {
MediaPipeline pipeline = kurentoClient.createMediaPipeline();
new WebRtcEndpoint.Builder(pipeline).build();
KurentoClient otherKurentoClient = kms.createKurentoClient();
ServerManager serverManager = otherKurentoClient.getServerManager();
List<MediaPipeline> mediaPipelines = serverManager.getPipelines();
for (MediaObject o : mediaPipelines.get(0).getChildren()) {
if (o.getId().indexOf("WebRtcEndpoint") >= 0) {
WebRtcEndpoint webRtc = (WebRtcEndpoint) o;
assertThat(pipeline, is(webRtc.getParent()));
}
}
}