Package com.castlabs.android.player
Class MediaCodecInfo
java.lang.Object
com.castlabs.android.player.MediaCodecInfo
- All Implemented Interfaces:
Parcelable
Container class holding the media codec name associated with the mimetype
- Since:
- 4.2.6
-
Nested Class Summary
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringThe name of the codec as registered in the system.static final Parcelable.Creator<MediaCodecInfo> Creator for Parcelable implementation.final StringThe MIME type of the media codec.Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE -
Constructor Summary
ConstructorsConstructorDescriptionMediaCodecInfo(String mimeType, String codecName) Creates the container class. -
Method Summary
Modifier and TypeMethodDescriptionintbooleaninthashCode()voidwriteToParcel(Parcel dest, int flags)
-
Field Details
-
mimeType
The MIME type of the media codec. This is typically a value fromMimeTypes. -
codecName
The name of the codec as registered in the system. This can be null if no specific codec is required. -
CREATOR
Creator for Parcelable implementation.
-
-
Constructor Details
-
MediaCodecInfo
Creates the container class. Mimetypes are values ofMimeTypese.g.MimeTypes.VIDEO_H264. Codec names areStrings as registered in the system- Parameters:
mimeType- the mimetypecodecName- the codec name
-
-
Method Details
-
describeContents
public int describeContents()- Specified by:
describeContentsin interfaceParcelable
-
writeToParcel
- Specified by:
writeToParcelin interfaceParcelable
-
hashCode
public int hashCode() -
equals
-