Method

GrlSourceget_media_from_uri

since: 0.2.0

Declaration [src]

guint
grl_source_get_media_from_uri (
  GrlSource* source,
  const gchar* uri,
  const GList* keys,
  GrlOperationOptions* options,
  GrlSourceResolveCb callback,
  gpointer user_data
)

Description [src]

Creates an instance of GrlMedia representing the media resource exposed at uri.

It is recommended to call grl_source_test_media_from_uri() before invoking this to check whether the target source can theoretically do the resolution.

This method is asynchronous.

Available since: 0.2.0

Parameters

uri

Type: const gchar*

A URI that can be used to identify a media resource.

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
keys

Type: A list of None

A list of keys to resolve.

The data is owned by the caller of the method.
options

Type: GrlOperationOptions

Options wanted for that operation.

The data is owned by the caller of the method.
callback

Type: GrlSourceResolveCb

The user defined callback.

user_data

Type: gpointer

The user data to pass in the callback.

The argument can be NULL.
The data is owned by the caller of the method.

Return value

Type: guint

The operation identifier.