VideoInfo

  • VideoInfo is a class that holds video properties of the current media session and can be obtained from MediaStatus.

  • It includes constants to define different HDR types: HDR_TYPE_DV (Dolby Vision), HDR_TYPE_HDR (High Dynamic Range), HDR_TYPE_HDR10, HDR_TYPE_SDR (Standard Dynamic Range), and HDR_TYPE_UNKNOWN.

  • Public methods allow retrieval of the HDR type, height, and width of the video in pixels.

  • The class also includes standard methods like equals, hashCode, and writeToParcel for object comparison and parcelable implementation.

A class that holds video properties of the current media session. The current VideoInfo can be obtained from MediaStatus.

Nested Class Summary

Constant Summary

int HDR_TYPE_DV Dolby Vision.
int HDR_TYPE_HDR High Dynamic Range.
int HDR_TYPE_HDR10 HDR10.
int HDR_TYPE_SDR Standard Dynamic Range.
int HDR_TYPE_UNKNOWN Unknown HDR type.

Inherited Constant Summary

From interface android.os.Parcelable

int CONTENTS_FILE_DESCRIPTOR
int PARCELABLE_WRITE_RETURN_VALUE

Public Method Summary

boolean

equals(Object other)

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

writeToParcel(Parcel out, int flags)

Inherited Method Summary

From class java.lang.Object

Object

clone()

boolean

equals(Object arg0)

void

finalize()

final Class<?>

getClass()

int

hashCode()

final void

notify()

final void

notifyAll()

String

toString()

final void

wait(long arg0, int arg1)

final void

wait(long arg0)

final void

wait()

From interface android.os.Parcelable

abstract int

describeContents()

abstract void

writeToParcel(Parcel arg0, int arg1)

Constants

public static final int HDR_TYPE_DV

Dolby Vision.

Constant Value: 3

public static final int HDR_TYPE_HDR

High Dynamic Range.

Constant Value: 4

public static final int HDR_TYPE_HDR10

public static final int HDR_TYPE_SDR

Standard Dynamic Range.

Constant Value: 1

public static final int HDR_TYPE_UNKNOWN

Unknown HDR type.

Constant Value: 0

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 int hashCode ()

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.