MediaPlayer.SetSurfaceSize(Size) MediaPlayer.SetSurfaceSize(Size) MediaPlayer.SetSurfaceSize(Size) MediaPlayer.SetSurfaceSize(Size) MediaPlayer.SetSurfaceSize(Size) Method

Definition

Sets the size of the composition surface returned by GetSurface.

public : void SetSurfaceSize(Size size)
void SetSurfaceSize(Size size) const;
public void SetSurfaceSize(Size size)
Public Sub SetSurfaceSize(size As Size)
mediaPlayer.setSurfaceSize(size);

Parameters

size
Size Size Size

An object representing the size of the composition surface.

Additional features and requirements

Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

Remarks

The default size for the composition surface returned by GetSurface is 640x480, in pixels.