Replicate xdotool command on Wayland KDE to pause multiple mpv instances simultaneously

I wanted to compare multiple twitch vods simultaneously in sync and for that the best solution I found was to open multiple mpv instances at the same time. But, I need to have the functionality to pause all the mpv instances at once. Is there a clean way to do that?

This is the command I want to replicate: xdotool search --class mpv key --window %@ p which I found on this comment.

I have tried to use kdotool for this but I cannot find a way to send a key through that tool. Is this possible through a custom kwin script?
I have also tried using gridplayer but that cannot load twitch vods by the URL for some reason but MPV can.

Turns out I can just run mpv with—gpu-context=x11 to launch it with xwayland, and the xdotool command works. Not a full solution since it uses xwayland instead of wayland but it is a solution.