Embedding for YouTube playlists

I’d like if the YouTube embedding could be expanded to playlists. I feel like it would be easy to implement, since it’s just a matter of recognizing the URL (for example, https://youtube.com/playlist?list=PL49CF3715CB9EF31D ), and then the functionality would be mostly the same. For example, for embedding this playlist, YouTube suggests the following:

<iframe width="560" height="315" src="https://www.youtube.com/embed/videoseries?list=PL49CF3715CB9EF31D" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>

For embedding a single video the code is mostly the same, only the src attribute changes:

<iframe width="560" height="315" src="https://www.youtube.com/embed/ZK3O402wf1c" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>

Right now, trying to embed a playlist using {{video https://youtube.com/playlist?list=PL49CF3715CB9EF31D}} results in an iframe of a YouTube page asking for cookies, but not the player.