hardwareAcceleration([hwaccel])

Class: MediaPlayer.

Description:

Sets or get hardware acceleration setting for ffmpeg video decoding.
To get a list of supported hardware acceleration options use hardwareAccelerations getter property.

Parameters:

Name Type Description

[hwaccel]

string

-hwaccel option value for FFMPEG. Default is "auto". null or "none" to disable hardware acceleration.

Returns:

Returns this component instance if setting, string if getting.

Type: string | MediaPlayer