Interface StreamMetadata
public interface StreamMetadata
Represents metadata associated with a media stream, including a description and custom key-value pairs.
Implementations of this interface provide access to the stream metadata, which can be used to store additional information about the media stream.
To create a new instance of StreamMetadata, use the Builder pattern:
StreamMetadata metadata = new StreamMetadataImpl.Builder()
.description("Media stream metadata")
.streamDirection("outgoing")
.addCustom("key1", "value1")
.addCustom("key2", 123)
.build();
- Author:
- Copyright (c) 2025 by Oracle, Inc. All Rights Reserved.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder interface for creating immutableStreamMetadatainstances. -
Method Summary
Modifier and TypeMethodDescriptionGets the custom metadata associated with the media stream.Gets the description of the media stream.Gets the stream direction associated with the media stream.voidSets the custom metadata associated with the media stream.voidsetDescription(String description) Sets the description of the media stream.voidsetStreamDirection(String streamDirection) Sets the stream direction associated with the media stream.
-
Method Details
-
getDescription
String getDescription()Gets the description of the media stream.- Returns:
- the description, or null if not applicable.
-
setDescription
Sets the description of the media stream.- Parameters:
description- the description to set.
-
getCustom
Gets the custom metadata associated with the media stream.- Returns:
- the custom metadata, or null if not applicable.
-
setCustom
Sets the custom metadata associated with the media stream.- Parameters:
custom- the custom metadata to set.
-
getStreamDirection
String getStreamDirection()Gets the stream direction associated with the media stream.- Returns:
- the stream direction as a String, or null if not applicable.
-
setStreamDirection
Sets the stream direction associated with the media stream.- Parameters:
streamDirection- the stream direction to set.
-