checks if file opening is valid media file before plaiyng (file -b)