VideoInfo
Stay organized with collections
Save and categorize content based on your preferences.
A class that holds video properties of the current media session. The current VideoInfo
can be
obtained from MediaStatus
.
Inherited Constant Summary
From interface android.os.Parcelable
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
Public Method Summary
boolean |
|
int |
getHdrType
() Returns the HDR type of the current media session.
|
int |
getHeight
() Returns the width of the height in pixels.
|
int |
getWidth
() Returns the width of the video in pixels.
|
int |
|
void |
|
Inherited Method Summary
From class java.lang.Object
From interface android.os.Parcelable
abstract int |
describeContents
()
|
abstract void |
writeToParcel
( Parcel
arg0,
int arg1)
|
Constants
public static final int
HDR_TYPE_DV
public static final int
HDR_TYPE_HDR
public static final int
HDR_TYPE_HDR10
public static final int
HDR_TYPE_SDR
public static final int
HDR_TYPE_UNKNOWN
Public Methods
public boolean
equals
( Object
other)
public int
getHdrType
()
Returns the HDR type of the current media session.
public int
getHeight
()
Returns the width of the height in pixels.
public int
getWidth
()
Returns the width of the video in pixels.
public void
writeToParcel
( Parcel
out, int
flags)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eVideoInfo\u003c/code\u003e is a class in Android's Cast framework that stores video properties for a media session, such as width, height, and HDR type.\u003c/p\u003e\n"],["\u003cp\u003eIt can be accessed via the \u003ccode\u003eMediaStatus\u003c/code\u003e object, which provides information about the currently playing media.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can use the \u003ccode\u003eVideoInfo.Builder\u003c/code\u003e to construct \u003ccode\u003eVideoInfo\u003c/code\u003e instances.\u003c/p\u003e\n"],["\u003cp\u003eSeveral constants are defined for representing different HDR types (e.g., HDR10, Dolby Vision).\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eVideoInfo\u003c/code\u003e implements the \u003ccode\u003eParcelable\u003c/code\u003e interface, enabling it to be passed between components.\u003c/p\u003e\n"]]],[],null,["# VideoInfo\n\npublic final class **VideoInfo** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nimplements [Parcelable](//developer.android.com/reference/android/os/Parcelable.html) \nA class that holds video properties of the current media session. The current\n[VideoInfo](/android/reference/com/google/android/gms/cast/VideoInfo) can be\nobtained from [MediaStatus](/android/reference/com/google/android/gms/cast/MediaStatus). \n\n### Nested Class Summary\n\n|-------|---|---|------------------------------------------------------------------------------------|\n| class | [VideoInfo.Builder](/android/reference/com/google/android/gms/cast/VideoInfo.Builder) || Builder for [VideoInfo](/android/reference/com/google/android/gms/cast/VideoInfo). |\n\n### Constant Summary\n\n|-----|-----------------------------------------------------------------------------------------------|-------------------------|\n| int | [HDR_TYPE_DV](/android/reference/com/google/android/gms/cast/VideoInfo#HDR_TYPE_DV) | Dolby Vision. |\n| int | [HDR_TYPE_HDR](/android/reference/com/google/android/gms/cast/VideoInfo#HDR_TYPE_HDR) | High Dynamic Range. |\n| int | [HDR_TYPE_HDR10](/android/reference/com/google/android/gms/cast/VideoInfo#HDR_TYPE_HDR10) | HDR10. |\n| int | [HDR_TYPE_SDR](/android/reference/com/google/android/gms/cast/VideoInfo#HDR_TYPE_SDR) | Standard Dynamic Range. |\n| int | [HDR_TYPE_UNKNOWN](/android/reference/com/google/android/gms/cast/VideoInfo#HDR_TYPE_UNKNOWN) | Unknown HDR type. |\n\n### Inherited Constant Summary\n\nFrom interface android.os.Parcelable \n\n|-----|-------------------------------|---|\n| int | CONTENTS_FILE_DESCRIPTOR | |\n| int | PARCELABLE_WRITE_RETURN_VALUE | |\n\n### Public Method Summary\n\n|---------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| boolean | [equals](/android/reference/com/google/android/gms/cast/VideoInfo#equals(java.lang.Object))([Object](//developer.android.com/reference/java/lang/Object.html) other) |\n| int | [getHdrType](/android/reference/com/google/android/gms/cast/VideoInfo#getHdrType())() Returns the HDR type of the current media session. |\n| int | [getHeight](/android/reference/com/google/android/gms/cast/VideoInfo#getHeight())() Returns the width of the height in pixels. |\n| int | [getWidth](/android/reference/com/google/android/gms/cast/VideoInfo#getWidth())() Returns the width of the video in pixels. |\n| int | [hashCode](/android/reference/com/google/android/gms/cast/VideoInfo#hashCode())() |\n| void | [writeToParcel](/android/reference/com/google/android/gms/cast/VideoInfo#writeToParcel(android.os.Parcel,%20int))([Parcel](//developer.android.com/reference/android/os/Parcel.html) out, int flags) |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nFrom interface android.os.Parcelable \n\n|---------------|--------------------------------------------------------------------------------------------------|\n| abstract int | describeContents() |\n| abstract void | writeToParcel([Parcel](//developer.android.com/reference/android/os/Parcel.html) arg0, int arg1) |\n\nConstants\n---------\n\n#### public static final int\n**HDR_TYPE_DV**\n\nDolby Vision. \nConstant Value: 3 \n\n#### public static final int\n**HDR_TYPE_HDR**\n\nHigh Dynamic Range. \nConstant Value: 4 \n\n#### public static final int\n**HDR_TYPE_HDR10**\n\nHDR10. \nConstant Value: 2 \n\n#### public static final int\n**HDR_TYPE_SDR**\n\nStandard Dynamic Range. \nConstant Value: 1 \n\n#### public static final int\n**HDR_TYPE_UNKNOWN**\n\nUnknown HDR type. \nConstant Value: 0\n\nPublic Methods\n--------------\n\n#### public boolean **equals** ([Object](//developer.android.com/reference/java/lang/Object.html) other)\n\n#### public int **getHdrType** ()\n\nReturns the HDR type of the current media session. \n\n#### public int **getHeight** ()\n\nReturns the width of the height in pixels. \n\n#### public int **getWidth** ()\n\nReturns the width of the video in pixels. \n\n#### public int **hashCode** ()\n\n#### public void **writeToParcel** ([Parcel](//developer.android.com/reference/android/os/Parcel.html) out, int flags)"]]