code: def libvlc_media_player_new_from_media(p_md):
      '''Create a Media Player object from a Media.
      @param p_md: the media. Afterwards the p_md can be safely destroyed.
      @return: a new media player object, or NULL on error.
      '''
      f = _Cfunctions.get('libvlc_media_player_new_from_media', None) or \
          _Cfunction('libvlc_media_player_new_from_media', ((1,),), class_result(MediaPlayer),
                      ctypes.c_void_p, Media)
      return f(p_mdf libvlc_media_player_new_from_media(p_md):
      '''Create a Media Player object from a Media.
      @param p_md: the media. Afterwards the p_md can be safely destroyed.
      @return: a new media player object, or NULL on error.
      '''
      f = _Cfunctions.get('libvlc_media_player_new_from_media', None) or \
          _Cfunction('libvlc_media_player_new_from_media', ((1,),), class_result(MediaPlayer),
                      ctypes.c_void_p, Media)
      return f(p_md)
docs: Create a Media Player object from a Media.
      @param p_md: the media. Afterwards the p_md can be safely destroyed.
      @return: a new media player object, or NULL on error.