VideoUtils.Size

public static class Size

Enclosing class: VideoUtils

Defines a video resolution to be used when setting the preferred resolution using the Subscriber#setPreferredResolution(VideoUtils.Size preferredResolution) method.

Properties

Name Type Description
width int The width, in pixels. Note that you must call the Subscriber#setPreferredResolution(VideoUtils.Size preferredResolution) method again to set a new preferred resolution.
height int The height, in pixels. Note that you must call the Subscriber#setPreferredResolution(VideoUtils.Size preferredResolution) method again to set a new preferred resolution.

Methods

Name Description
Size()
Size(width, height) Constructs a Size object, to be used when setting the preferred resolution using the Subscriber#setPreferredResolution(VideoUtils.Size preferredResolution) method.
Size(size) Constructs a new Size object, based on the dimensions of an existing Size object.
equals(width, height) → {boolean} Checks to see if the Size object matches the specified height and width.
equals(obj) → {boolean} Checks to see if this Size object has the same dimensions as the Size object passed in.
set(width, height) Changes the dimensions of the Size object.
set(size) Changes the dimensions of the Size object to match the dimensions of an existing Size object.

Size()

Size(width, height)

Constructs a Size object, to be used when setting the preferred resolution using the Subscriber#setPreferredResolution(VideoUtils.Size preferredResolution) method.

Parameters:
Name Type Description
width int The width, in pixels.
height int The height, in pixels.

Size(size)

Constructs a new Size object, based on the dimensions of an existing Size object.

Parameters:
Name Type Description
size VideoUtils.Size The Size object to be duplicated.

equals(width, height) → {boolean}

Checks to see if the Size object matches the specified height and width.

Parameters:
Name Type Description
width int The width, in pixels.
height int The height, in pixels.
Returns:

boolean

equals(obj) → {boolean}

Checks to see if this Size object has the same dimensions as the Size object passed in.

Parameters:
Name Type Description
obj Object An object to test for equality.
Returns:

boolean

set(width, height)

Changes the dimensions of the Size object.

Parameters:
Name Type Description
width int The width, in pixels.
height int The height, in pixels.

set(size)

Changes the dimensions of the Size object to match the dimensions of an existing Size object.

Parameters:
Name Type Description
size VideoUtils.Size The Size object to match the dimensions to.