Rygel.MediaObject – librygel-server – Vala Binding Reference

Rygel.MediaObject – librygel-server Reference Manual

# MediaObject

## Object Hierarchy:

## Description:

public abstract class MediaObject : `Object`

Represents a media object (container or item).

The derived RygelMediaContainer class represents a container, and the derived RygelMediaItem classes (RygelAudioItem, RygelImageItem and RygelVideoItem) represent media items.

These objects correspond to items and containers in the UPnP ContentDirectory's DIDL-Lite XML.

All known sub-classes:

- AudioItem
- ImageItem
- MediaContainer

- MediaItem
- MusicItem
- PhotoItem

- SimpleContainer
- VideoItem

Namespace: Rygel
Package: librygel-server

## Content:

### Properties:

- public MediaContainer parent_ref { set; get; }
- public `string` title { set; get; }

### Creation methods:

- public MediaObject ()

### Methods:

- public async `File`? get_writable (`Cancellable`? cancellable) throws `Error`
  Fetches a File object for any writable URI available for this object.
- public async `ArrayList`<`File`> get_writables (`Cancellable`? cancellable) throws `Error`
  Fetches File objects for all writable URIs available for this object.
- protected `int` compare_string_props (`string` prop1, `string` prop2)
- protected `int` compare_int_props (`int` prop1, `int` prop2)

### Fields:

- public `string` id
- public `string` ref_id
- public `string` upnp_class
- public `uint64` modified
- public `ArrayList`<`string`> uris
- public weak MediaContainer parent