Open video in external application

Is there a way to watch youtube video from Firefox in external application like mpv or freetube? I tried External Application Button (WebExtension) but I have trouble configuring it. It says “Cannot find the native client”.
I guess this is because of sandbox feature of flatpak.

Any solutions, please? I have firefox, freetube and mpv installed from flatpak.