Nextcloud and avi, mkv and other formats

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: , 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 ? (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 )))