Support arbitrary video resolution in getUserMedia API