Skip to content

For Android, individually disable GPU acceleration for Media instance

Problem to solve

For Android, individually disable GPU acceleration for Media if global GPU option --codec=mediacodec_ndk for LibVLC was provided.

If we set GPU acceleration option individually for Media instance before starting to play it, sometimes acceleration does not turn on. Playback restart of Media is needed to start GPU acceleration. To prevent this behavior, the option is to enable GPU acceleration globally for LibVLC and disable it individually for a particular Media instance if needed (if requested by a user).

Intended users

Android users

Proposal

Provide the same type options like for Apple :no-videotoolbox and for Windows :avcodec-hw=none

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information