다음을 통해 공유


Connection.VideoProvider.ChangePeerDimensions(Int32, Int32) Method

Definition

Used to inform listening InCallService implementations when the dimensions of the peer's video have changed.

[Android.Runtime.Register("changePeerDimensions", "(II)V", "GetChangePeerDimensions_IIHandler", ApiSince=23)]
public virtual void ChangePeerDimensions (int width, int height);
[<Android.Runtime.Register("changePeerDimensions", "(II)V", "GetChangePeerDimensions_IIHandler", ApiSince=23)>]
abstract member ChangePeerDimensions : int * int -> unit
override this.ChangePeerDimensions : int * int -> unit

Parameters

width
Int32

The updated peer video width.

height
Int32

The updated peer video height.

Attributes

Remarks

Used to inform listening InCallService implementations when the dimensions of the peer's video have changed.

This could occur if, for example, the peer rotates their device, changing the aspect ratio of the video, or if the user switches between the back and front cameras.

Received by the InCallService via InCallService.VideoCall.Callback#onPeerDimensionsChanged(int, int).

Java documentation for android.telecom.Connection.VideoProvider.changePeerDimensions(int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to