If you stick a media file in the editor then the media filter will find it and 'play' it. If you have HTML5 option switched on then that's what you'll get - the appropriate HTML construct. In theory anyway.
As I say, it should just work.
Also, I wouldn't try manipulating links to resources inside the editor. This way lies madness
If you want them as individual activities then set them up as file resources.
I'm still a bit unclear what you are trying to achieve and why but I sense that you might be overthinking this a bit (or just trying to make your life difficult).
Failing all of that... the answer may just be 'no'. Or possibly, write your own plugin for the editor - https://docs.moodle.org/dev/TinyMCE_plugins (there is also an editor forum if you have specific questions)
PS... I deleted your other post about this. Please don't start multiple posts for the same issue.