public interface RepositoryClient
Modifier and Type | Method and Description |
---|---|
RepositoryItemRecorder |
createRepositoryItem(java.util.Map<java.lang.String,java.lang.String> metadata)
Creates a new repository item with the provided metadata, ready for media recording.
|
RepositoryItemPlayer |
getReadEndpoint(java.lang.String itemId)
Obtains a new endpoint for reading (playing multimedia) from the repository item.
|
java.util.Map<java.lang.String,java.lang.String> |
getRepositoryItemMetadata(java.lang.String itemId)
Returns the metadata from a repository item.
|
java.util.Set<java.lang.String> |
regexFindItems(java.util.Map<java.lang.String,java.lang.String> searchValues)
Searches for repository items by each pair of attributes whose values can be regex Strings.
|
Response |
removeRepositoryItem(java.lang.String itemId)
Removes the repository item associated to the provided id.
|
Response |
setRepositoryItemMetadata(java.lang.String itemId,
java.util.Map<java.lang.String,java.lang.String> metadata)
Replaces the metadata of a repository item.
|
java.util.Set<java.lang.String> |
simpleFindItems(java.util.Map<java.lang.String,java.lang.String> searchValues)
Searches for repository items by each pair of attributes and their expected values.
|
RepositoryItemRecorder createRepositoryItem(java.util.Map<java.lang.String,java.lang.String> metadata)
metadata
- a map of values. Can be empty but not null.RepositoryItemRecorder
containing the item's id and an URL through which
Kurento Media Server can record media sent by the clientResponse removeRepositoryItem(java.lang.String itemId)
itemId
- the id of an existing repository itemResponse
containing the response code from the serverRepositoryItemPlayer getReadEndpoint(java.lang.String itemId)
itemId
- the id of an existing repository itemRepositoryItemPlayer
containing the item's id and an URL from which Kurento
Media Server can play (serve) stored media streamsjava.util.Set<java.lang.String> simpleFindItems(java.util.Map<java.lang.String,java.lang.String> searchValues)
searchValues
- pairs of attributes and their valuesSet
<String
> with identifiers of the repository items that were
foundjava.util.Set<java.lang.String> regexFindItems(java.util.Map<java.lang.String,java.lang.String> searchValues)
searchValues
- pairs of attributes and their valuesSet
<String
> with identifiers of the repository items that were
foundjava.util.Map<java.lang.String,java.lang.String> getRepositoryItemMetadata(java.lang.String itemId)
itemId
- the id of an existing repository itemResponse setRepositoryItemMetadata(java.lang.String itemId, java.util.Map<java.lang.String,java.lang.String> metadata)
itemId
- the id of an existing repository itemmetadata
- the new metadataResponse
with the response code from the server