Gjsify LogoGjsify Logo

Index

Functions

  • Browse into a playlist. The playlist entries are returned via the callback function as GrlMedia objects. This function imitates the API and way of working of #grl_source_browse.

    The playlist provided could be of any GrlMedia class, as long as its URI points to a valid playlist file.

    This function is asynchronous.

    See #grl_source_browse() function for additional information and sample code.

    Parameters

    Returns number

  • Browse into a playlist. The playlist entries are returned via the bs->callback function as GrlMedia objects. This function is more suitable to be called from plugins, which by design get the GrlSourceBrowseSpec already filled in.

    The bs->playlist provided could be of any GrlMedia class, as long as its URI points to a valid playlist file.

    This function is asynchronous.

    See #grl_pls_browse() and #grl_source_browse() function for additional information and sample code.

    Parameters

    Returns void

  • Browse into a playlist. The playlist entries are returned via the callback function as GrlMedia objects. This function imitates the API and way of working of #grl_source_browse_sync.

    The filter function filter_func will be used for plugins or applications to be able to refuse particular entries from being listed.

    If a %NULL filter function is passed, the media will be added with only the metadata coming from the playlist included.

    This function is synchronous.

    See #grl_source_browse_sync() function for additional information and sample code.

    Parameters

    Returns Grl.Media[]

  • This function will update (if content is non-%NULL) or create a GrlMedia and populate it with information from info.

    If info is %NULL, a call to g_file_query_info() will be made.

    This function is useful for plugins that browse the local filesystem and want to easily create GrlMedia from filesystem information.

    Parameters

    • content: Grl.Media

      an existing #GrlMedia for the file, or %NULL

    • file: Gio.File

      a #GFile pointing to the file or directory in question

    • info: Gio.FileInfo

      an existing #GFileInfo, or %NULL

    • handle_pls: boolean

      Whether playlists should be handled as containers

    • options: Grl.OperationOptions

      a #GrlOperationOptions representing the options to apply to this operation.

    Returns Grl.Media

  • get_file_attributes(): string
  • Returns the list of attributes to pass to g_file_query_info() to make it possible to populate a GrlMedia using grl_pls_file_to_media().

    Do not free the result of this function.

    Returns string

  • media_is_playlist(media: Grl.Media): boolean
  • Check if a file identified by GrlMedia object is a playlist or not. This function does blocking I/O.

    Parameters

    Returns boolean

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method