DataSource


Object Hierarchy:

Object hierarchy for DataSource

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.

RygelDataSource instances are provided by rygel_media_engine_create_data_source() which will return a derived #RygelDataSource that uses a specific IO backend and/or multimedia backend to stream the multimedia data at the URI.

The derived RygelDataSource may provide additional API for use by the derived media engine. For instance, rygel_media_engine_get_transcoders() may return derived #RygelTranscoder instances, and these may use that additional API in their create_source() implementations, for instance to access resources or data structures of the specific multimedia backend.


Namespace: Rygel
Package: librygel-server

Content:

Methods:

Signals:

Inherited Members:

All known members inherited from class GLib.Object