Java Code Examples for org.kurento.client.MediaPipeline#addTag()

The following examples show how to use org.kurento.client.MediaPipeline#addTag() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: KurentoHandler.java    From openmeetings with Apache License 2.0 6 votes vote down vote up
KRoom getRoom(Long roomId) {
	log.debug("Searching for room {}", roomId);
	KRoom room = rooms.get(roomId);

	if (room == null) {
		log.debug("Room {} does not exist. Will create now!", roomId);
		Room r = roomDao.get(roomId);
		Transaction t = beginTransaction();
		MediaPipeline pipe = client.createMediaPipeline(t);
		pipe.addTag(t, TAG_KUID, kuid);
		pipe.addTag(t, TAG_ROOM, String.valueOf(roomId));
		t.commit();
		room = new KRoom(streamProcessor, r, pipe, chunkDao);
		rooms.put(roomId, room);
	}
	log.debug("Room {} found!", roomId);
	return room;
}
 
Example 2
Source File: TestStreamProcessor.java    From openmeetings with Apache License 2.0 5 votes vote down vote up
private MediaPipeline createTestPipeline() {
	Transaction t = kHandler.beginTransaction();
	MediaPipeline pipe = kHandler.getClient().createMediaPipeline(t);
	pipe.addTag(t, TAG_KUID, kHandler.getKuid());
	pipe.addTag(t, TAG_MODE, MODE_TEST);
	pipe.addTag(t, TAG_ROOM, MODE_TEST);
	t.commit();
	return pipe;
}