Package com.castlabs.android.player
Class MetadataConfiguration
java.lang.Object
com.castlabs.android.player.MetadataConfiguration
- All Implemented Interfaces:
Parcelable
Configuration for metadata rendering.
This configuration allows customizing when metadata is output and how pending metadata is handled.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMetadataConfigurationbuilder static inner class.Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Parcelable.Creator<MetadataConfiguration> Creator forMetadataConfigurationfrom aParcel.static final MetadataConfigurationstatic final longDefault end-of-stream metadata threshold, in microseconds.static final booleanDefault value for whether metadata is output immediately after it is decodedfalsestatic final longDisables end-of-stream metadata threshold handling.final longThe time, in microseconds, that the renderer waits after reaching the end of a media period before discarding pending metadata with presentation time beyond the period duration.final booleanWhether metadata is output immediately after it is decoded instead of at its presentation time.Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE -
Method Summary
Modifier and TypeMethodDescriptionintbooleaninthashCode()voidwriteToParcel(Parcel dest, int flags)
-
Field Details
-
DEFAULT_OUTPUT_METADATA_EARLY
public static final boolean DEFAULT_OUTPUT_METADATA_EARLYDefault value for whether metadata is output immediately after it is decodedfalse- See Also:
-
DEFAULT_END_OF_STREAM_METADATA_THRESHOLD_US
public static final long DEFAULT_END_OF_STREAM_METADATA_THRESHOLD_USDefault end-of-stream metadata threshold, in microseconds.A value of
0causes pending metadata beyond the period duration to be discarded immediately when playback reaches the end of the period.- See Also:
-
DISABLE_END_OF_STREAM_METADATA_THRESHOLD_US
public static final long DISABLE_END_OF_STREAM_METADATA_THRESHOLD_USDisables end-of-stream metadata threshold handling.When set, pending metadata is never discarded solely because its presentation time is beyond the period duration.
- See Also:
-
DEFAULT
-
outputMetadataEarly
public final boolean outputMetadataEarlyWhether metadata is output immediately after it is decoded instead of at its presentation time. -
endOfStreamMetadataThresholdUs
public final long endOfStreamMetadataThresholdUsThe time, in microseconds, that the renderer waits after reaching the end of a media period before discarding pending metadata with presentation time beyond the period duration.Use
0to discard such metadata immediately at the end of the period, orDISABLE_END_OF_STREAM_METADATA_THRESHOLD_USto disable this behavior. -
CREATOR
Creator forMetadataConfigurationfrom aParcel.
-
-
Method Details
-
writeToParcel
- Specified by:
writeToParcelin interfaceParcelable
-
describeContents
public int describeContents()- Specified by:
describeContentsin interfaceParcelable
-
hashCode
public int hashCode() -
equals
-