For this to work, the codecs need to be able to compile to JS via emscripten, so what you are asking for is necessarily part of the task.
But playing a DVD, for example, isn't just about codecs, they have menus and various other features that need to be implemented too.