YouTube background playback is no longer possible on many browsers, but not all of them. Here's one workaround on Android.
In order to load an MKV file, it is necessary to create a new instance of the OpenK4APlayback class. Note that if the is_looping flag is set, the stream will not stop playing at the EOF of the stream.