Stay organized with collections Save and categorize content based on your preferences.

VideoSize

public final class VideoSize extends VideoSize


Immutable class for describing video size.

Summary

Public constructors

VideoSize(int width, int height)

Inherited methods

From androidx.media2.common.VideoSize
boolean

Checks if this video size is equal to another video size.

@IntRange(from = 0) int

Returns the height of the video.

@IntRange(from = 0) int

Returns the width of the video.

int
@NonNull String

Return the video size represented as a string with the format "WxH"

Public constructors

VideoSize

public VideoSize(int width, int height)