Rygel.MediaItem – librygel-server – Vala Binding Reference

Rygel.MediaItem – librygel-server Reference Manual

# MediaItem

## Object Hierarchy:

## Description:

public abstract class MediaItem : MediaObject

Represents a media item (Music, Video or Image).

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

All known sub-classes:

- AudioItem
- ImageItem

- MusicItem
- PhotoItem

- VideoItem

Required by:

- VisualItem

Namespace: Rygel
Package: librygel-server

## Content:

### Properties:

- public `int64` size { set; get; }
- public `bool` place_holder { set; get; }
- public `string` description { set; get; }

### Creation methods:

- public MediaItem (`string` id, MediaContainer parent, `string` title, `string` upnp_class)

### Methods:

- public virtual DataSource? create_stream_source (`string`? host_ip = null)
- public `bool` is_live_stream ()
- public abstract `bool` streamable ()
- public virtual void add_uri (`string` uri)
- protected virtual `ProtocolInfo` get_protocol_info (`string`? uri, `string` protocol)
- protected virtual void add_resources (`DIDLLiteItem` didl_item, `bool` allow_internal) throws `Error`

### Fields:

- public `string` date
- public `string` mime_type
- public `string` dlna_profile
- protected `Regex` address_regex