Nextcloud and avi, mkv and other formats

Hi,
can anyone help me to install support video format avi and other?
The linked video file is a .mp4 file, and works fine, but .avi .mkv and other does not.
I found this link: https://github.com/Afterster/videojs-vlc , but can’t understand how to install it correct…

p.s. Sorry for my English - I’m from Russia))

I found another way: maybe possible to get next one http://www.projekktor.com/ ? (It’s Free Web Video Player and supports many different video formats)
But how to integrate this pleer into Nextcloud I don’t know too )))