Add hasGetUserMedia() to check getUserMedia, openCamera() to open video.