本文整理匯總了Java中org.kurento.client.ServerManager.getPipelines方法的典型用法代碼示例。如果您正苦於以下問題:Java ServerManager.getPipelines方法的具體用法?Java ServerManager.getPipelines怎麽用?Java ServerManager.getPipelines使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.kurento.client.ServerManager
的用法示例。
在下文中一共展示了ServerManager.getPipelines方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: 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);
}
}
示例2: 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));
}
示例3: 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()));
}
}
}