fill


Description:

public bool fill (string media_type, owned uint8[] data)

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

Parameters:

this

a Harvest

media_type

media mime type

data

data to fill this

size

allocated size of data

Returns:

true when filled successfully, false if taken data was empty.