code: def media_new(self, mrl, *options):
          
          if ':' in mrl and mrl.index(':') > 1:
              # Assume it is a URL
              m = libvlc_media_new_location(self, str_to_bytes(mrl))
          else:
              # Else it should be a local path.
              m = libvlc_media_new_path(self, str_to_bytes(os.path.normpath(mrl)))
          for o in options:
              libvlc_media_add_option(m, str_to_bytes(o))
          m._instance = self
          return m
docs: Create a new Media instance.
  
          If mrl contains a colon (:) preceded by more than 1 letter, it
          will be treated as a URL. Else, it will be considered as a
          local path. If you need more control, directly use
          media_new_location/media_new_path methods.
  
          Options can be specified as supplementary string parameters,
          but note that many options cannot be set at the media level,
          and rather at the Instance level. For instance, the marquee
          filter must be specified when creating the vlc.Instance or
          vlc.MediaPlayer.
  
          Alternatively, options can be added to the media using the
          Media.add_options method (with the same limitation).
  
          @param options: optional media option=value strings