Media detection.