Added rtMedia class check condition