interpolation([interpolation])

Class: MediaPlayer.

Description:

Sets or gets the method how smoothing is done when video is resized.
ByGUI means that video frames are smoothed out while drawing on the player component in GUI.
ByFFMPEG means that ffmpeg will resize video to the size of the component before sending it to GUI. When component is resized while video is playing, the video will have to stop and then start again at the same position.
None means that video will not be smoothed, and when it's resized, it will look pixelated.

Parameters:

Name Type Description

[interpolation]

MediaPlayer.Interpolation

Specifies a method of smoothing video when it's displayed in not it's original size. Options: MediaPlayer.Interpolation.[None|ByGUI|ByFFMPEG]

Returns:

When setting value an instance of this object is returned, otherwise a current value is returned.

Type: MediaPlayer.Interpolation | MediaPlayer