當前位置: 首頁>>代碼示例>>Java>>正文


Java ServerManager類代碼示例

本文整理匯總了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));
}
 
開發者ID:Kurento,項目名稱:kurento-java,代碼行數:9,代碼來源:ServerManagerTest.java

示例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);
	}
}
 
開發者ID:lulop-k,項目名稱:kms-monitoring-java,代碼行數:9,代碼來源:KmsMonitor.java

示例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));
}
 
開發者ID:Kurento,項目名稱:kurento-java,代碼行數:16,代碼來源:ServerManagerTest.java

示例4: getServerManager

import org.kurento.client.ServerManager; //導入依賴的package包/類
public ServerManager getServerManager() {
  serverManager = kurentoClient.getServerManager();
  return serverManager;
}
 
開發者ID:Kurento,項目名稱:kurento-java,代碼行數:5,代碼來源:BasePipeline.java

示例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()));
    }
  }
}
 
開發者ID:Kurento,項目名稱:kurento-java,代碼行數:22,代碼來源:ServerManagerTest.java


注:本文中的org.kurento.client.ServerManager類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。