fixed photo and video playing