Rygel.DataSource – librygel-server – Vala Binding Reference

Rygel.DataSource – librygel-server Reference Manual

# DataSource

## Object Hierarchy:

## Description:

public interface DataSource : `Object`

Interface for all data streams provided by a #RygelMediaEngine.

The data source is responsible for providing the streamable byte-stream via its data_available signal. End-of-stream is signalled by the done signal, while errors are signalled by the error signal.

Implementations should fulfil at least these requirements:

1. It should support at least the file:// URI scheme.
2. It should be able to stream any kind of binary data, regardless of the format.

Namespace: Rygel
Package: librygel-server

## Content:

### Methods:

- public abstract void start (HTTPSeek? offsets) throws `Error`
  Start producing the data.
- public abstract void freeze ()
  Temporarily stop data generation.
- public abstract void thaw ()
  Resume data generation from a previous freeze call.
- public abstract void stop ()
  Stop producing data. After calling stop(), calling start() should produce data from the beginning and not resume streaming.

### Signals:

- public signal void data_available (`uint8`[] data)
  Emitted when the source has produced some data.
- public signal void done ()
  Emitted when the source does not have data anymore.
- public signal void error (`Error` error)
  Emitted when the source encounters a problem during data generation.

### Inherited Members:

All known members inherited from class GLib.Object

- @new
- newv
- new_valist
- get_type
- get_class
- @ref
- unref
- ref_sink
- weak_ref
- weak_unref
- add_weak_pointer
- remove_weak_pointer

- @get
- @set
- get_property
- set_property
- get_data
- set_data
- set_data_full
- steal_data
- get_qdata
- set_qdata
- set_qdata_full
- steal_qdata

- freeze_notify
- thaw_notify
- dispose
- constructed
- notify_property
- connect
- disconnect
- add_toggle_ref
- remove_toggle_ref
- bind_property
- notify
- ref_count