From RocketChat/Rocket.Chat#271 See example implementation - https://developers.google.com/web/updates/2016/01/mediarecorder