Set data attribute if media in use or not