Comment by jraph
mpv understands URLs to these websites and uses yt-dlp to download them.
On KDE, I assigned an action to open some URLs with mpv, which means I can play then from the clipboard manager or the copy menu that is displayed when copying if it's enabled.