The plugin shows its own advice for the reasons the user can act on and the player's message for the rest.
const { double } = await plugin.video.motion("amd").state();
// Advice for the codes this plugin knows; any other code shows the message.
const advice: Partial<Record<MotionReasonCode, string>> = {
upscaling: "Turn off AI Upscaling to smooth motion.",
runtime: "Install or update the AMD graphics driver.",
};
if (double) console.log(advice[double.code] ?? double.message);
Why a motion smoothing mode does not work, as a stable kebab-case code. A newer player may add codes: compare with the ones you handle and show MotionReason.message for the rest. The codes, in the order the player checks them (the first that holds is reported):
enginenvidiaon a player before it).platformno-gpuruntimefilterrenderingupscalingdoublingframeBlendnode, such as Frame Doubling); the two cannot run together.other-enginefailedoverloadrateformatsizeengine,platform,no-gpu,runtime,filterandrendering(once GPU rendering is not just starting) hold until the player restarts, and VideoMotion.set rejects a mode they stand in the way of; the others can pass during the run, sosetkeeps the request and the player applies it as soon as they do.