class ActiveStorage::Blob

def video?

Returns true if the content_type of this blob is in the video range, like video/mp4.
def video?
  content_type.start_with?("video")
end