Interface StreamMetadata.Builder
- Enclosing interface:
- StreamMetadata
public static interface StreamMetadata.Builder
Builder interface for creating immutable
StreamMetadata instances.-
Method Summary
Modifier and TypeMethodDescriptionAdds a custom key-value pair to the metadata.build()Builds theStreamMetadatainstance.Sets the custom metadata associated with the media stream.description(String description) Sets the description of the media stream.streamDirection(String streamDirection) Sets the stream direction associated with the media stream.
-
Method Details
-
description
Sets the description of the media stream.- Parameters:
description- the description.- Returns:
- this Builder instance.
-
custom
Sets the custom metadata associated with the media stream.- Parameters:
custom- the custom metadata.- Returns:
- this Builder instance.
-
addCustom
Adds a custom key-value pair to the metadata.- Parameters:
key- the key.value- the value.- Returns:
- this Builder instance.
-
streamDirection
Sets the stream direction associated with the media stream.- Parameters:
streamDirection- the stream direction.- Returns:
- this Builder instance.
-
build
StreamMetadata build()Builds theStreamMetadatainstance.- Returns:
- an immutable
StreamMetadatainstance.
-