Rygel.MediaEngine – librygel-server – Vala Binding Reference

Rygel.MediaEngine – librygel-server Reference Manual

# MediaEngine

## Object Hierarchy:

## Description:

public abstract class MediaEngine : `Object`

This is the base class for media engines that contain knowledge about the streaming and (optionally) the transcoding and seeking capabilites of the media library in use.

See, for instance, Rygel's built-in "gstreamer" and "simple" media engines, or the external rygel-gst-0-10-media-engine module.

The actual media engine used by Rygel at runtime is specified by the media-engine configuration key. For instance, in rygel.conf: media- engine=librygel-media-engine-gst.so

Media engines should also derive their own RygelDataSource, returning an instance of it from create_data_source().

See the <link linkend="implementing-media-engines">Implementing Media Engines</link> section.

Namespace: Rygel
Package: librygel-server

## Content:

### Static methods:

- public static void init () throws `Error`
- public static MediaEngine get_default ()
  Get the singleton instance of the currently used media engine.

### Creation methods:

- public MediaEngine ()

### Methods:

- public abstract unowned `List`<DLNAProfile> get_dlna_profiles ()
  Get a list of the DLNA profiles that are supported by this media engine when calling rygel_media_engine_create_data_source().
- public abstract unowned `List`<Transcoder>? get_transcoders ()
  Get a list of the transcoders that are provided by this media engine.
- public abstract DataSource? create_data_source (`string` uri)
  Get a data source for the URI.

### 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