A plugin's upscaling window explains a decoding reason by its cause,
and for copy-back names the plugins whose filters stand in the way, so
the user can turn them off there (a plugin cannot run another plugin's
commands).
const { reason } = await plugin.video.upscaling.state();
if (reason?.code === "decoding" && reason.cause === "copy-back") {
const names = (reason.plugins ?? []).map((p) => p.name).join(", ");
// Ask the user to reset those filters; the manifest names are not translated.
console.log(names ? `Turn off the video filters of ${names}` : reason.message);
} else if (reason) console.log(reason.message);
Why the video is not decoded on the GPU that renders it: the UpscalingReason.cause of a
decodingreason. A newer player may add causes: show UpscalingReason.message for the ones you do not handle.copy-backhwdecsetting.hwdec-offhwdecisno).softwareother-hwdec