Clapper.Harvest.fill

### Method

# Clapper Harvestfill

since: 0.8

#### Declaration [src]

    gboolean
    clapper_harvest_fill (
      ClapperHarvest* harvest,
      const gchar* media_type,
      gpointer data,
      gsize size
    )

#### Description [src]

Fill harvest with extracted data. It can be anything that GStreamer can parse and play such as single URI or a streaming manifest.

Calling again this function will replace previously filled content.

Commonly used media types are:

- `application/dash+xml` - DASH manifest

- `application/x-hls` - HLS manifest

- `text/x-uri` - direct media URI

- `text/uri-list` - playlist of URIs

- `application/clapper-playlist` - custom playlist format.

Available since: 0.8

#### Parameters

`media_type`

  Type: `const gchar*`

  Media mime type.

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

`data`

  Type: An array of `guint8`

  Data to fill `harvest`.

  The length of the array is specified in the `size` argument.

`size`

  Type: `gsize`

  Allocated size of `data`.

#### Return value

Type: `gboolean`

`TRUE` when filled successfully, `FALSE` if taken data was empty.