removed attach media recorder code