Play youtube code refeactored.