You cannot lock the aspect ratio afaik. The horrible workaround would be to detect the orientation changes and segment the recordings based on that (stop and start recording a new segment). You could then do some postprocessing with ffmpeg to reassemble, but that would still leave gaps.
Regarding it working on Android: I don't know the answer to that. Last I tested, even screen sharing on application windows broke with resizes, Android too. But then again, that was a couple of months ago. Was it Firefox or Chrome?
Regarding not being able to playback mkv on safari: you can pass a postprocessing script over the mkv recording with e.g. ffmpeg to remux it from mkv to MP4. Use vcodec copy and it'll be almost instantaneous, if you need the recordings played right away.
Good news on the part of Micael about mkv. If you're in hurry, Bodan, you can compile Kurento with the proposed PRs that are currently open on kms-core and kms-elements that add mkv support and try it yourself.