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 from a media engine. The data source is responsible for providing the streamable byte-stream via its data_available signal. End-of-stream is signalled through the done signal, while errors are signalled by using the error signal.

# The only required URI scheme is file:/""/ # A DataSource 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.