fit([fit])

Class: MediaPlayer.

Description:

Sets or get whether video frame should be resized to fit the media player component.

Parameters:

Name Type Description

[fit]

boolean

true to resize video to fit player component, false to use actual resolution of the video.

Returns:

Returns this component instance if setting, boolean if getting.

Type: boolean | MediaPlayer