Initialize the media capture.