ParoleStream

## ParoleStream ParoleStream — Currently playing stream. |

## Synopsis

    enum                ParoleMediaType;
                        ParoleStream;

## Object Hierarchy

      GObject
       +----ParoleStream

## Properties

      "absolute-duration"        gint64                : Read / Write
      "album"                    gchar*                : Read / Write
      "artist"                   gchar*                : Read / Write
      "comment"                  gchar*                : Read / Write
      "disp-par-d"               guint                 : Read / Write
      "disp-par-n"               guint                 : Read / Write
      "duration"                 gint64                : Read / Write
      "has-audio"                gboolean              : Read / Write
      "has-video"                gboolean              : Read / Write
      "live"                     gboolean              : Read / Write
      "media-type"               ParoleMediaType       : Read / Write
      "num-tracks"               guint                 : Read / Write
      "seekable"                 gboolean              : Read / Write
      "subtitles"                gchar*                : Read / Write
      "tag-available"            gboolean              : Read / Write
      "title"                    gchar*                : Read / Write
      "track"                    guint                 : Read / Write
      "uri"                      gchar*                : Read / Write
      "video-height"             gint                  : Read / Write
      "video-width"              gint                  : Read / Write
      "year"                     gchar*                : Read / Write

## Description

This object contains all the information describing the current processed stream by Parole, this object is used with the callback function the "state-changed" signal of the player, the plugin shouldn't take reference and all the properties are read-only for the plugins.s

## Details

### enum ParoleMediaType

    typedef enum
    {
        PAROLE_MEDIA_TYPE_UNKNOWN,
        PAROLE_MEDIA_TYPE_LOCAL_FILE,
        PAROLE_MEDIA_TYPE_CDDA,
        PAROLE_MEDIA_TYPE_VCD,
        PAROLE_MEDIA_TYPE_SVCD,
        PAROLE_MEDIA_TYPE_DVD,
        PAROLE_MEDIA_TYPE_DVB,
        PAROLE_MEDIA_TYPE_REMOTE

    } ParoleMediaType;

### ParoleStream

    typedef struct _ParoleStream ParoleStream;

## Property Details

### The `"absolute-duration"` property

      "absolute-duration"        gint64                : Read / Write

Absolution duration.

Allowed values: >= 0

Default value: 0

Since 0.2

### The `"album"` property

      "album"                    gchar*                : Read / Write

Album.

Default value: NULL

Since 0.2

### The `"artist"` property

      "artist"                   gchar*                : Read / Write

Artist.

Default value: NULL

Since 0.2

### The `"comment"` property

      "comment"                  gchar*                : Read / Write

Extra comment block.

Default value: NULL

Since 0.2

### The `"disp-par-d"` property

      "disp-par-d"               guint                 : Read / Write

Disp par d.

Allowed values: >= 1

Default value: 1

### The `"disp-par-n"` property

      "disp-par-n"               guint                 : Read / Write

Disp par n.

Allowed values: >= 1

Default value: 1

Since 0.2

### The `"duration"` property

      "duration"                 gint64                : Read / Write

Duration.

Allowed values: >= 0

Default value: 0

Since 0.2

### The `"has-audio"` property

      "has-audio"                gboolean              : Read / Write

Whether the stream has audio.

Default value: FALSE

Since 0.2

### The `"has-video"` property

      "has-video"                gboolean              : Read / Write

Whether the stream has video.

Default value: FALSE

Since 0.2

### The `"live"` property

      "live"                     gboolean              : Read / Write

Whether the stream is a live stream.

Default value: FALSE

Since 0.2

### The `"media-type"` property

      "media-type"               ParoleMediaType       : Read / Write

The media type.

Default value: PAROLE_MEDIA_TYPE_UNKNOWN

Since 0.2

### The `"num-tracks"` property

      "num-tracks"               guint                 : Read / Write

Number of tracks in the cdda source, only valid if ParoleStream:media-type: is PAROLE_MEDIA_TYPE_CDDA.

Allowed values: [1,99]

Default value: 1

Since 0.2

### The `"seekable"` property

      "seekable"                 gboolean              : Read / Write

Whether the stream is seekable, for example live streams are not seekable.

Default value: FALSE

Since 0.2

### The `"subtitles"` property

      "subtitles"                gchar*                : Read / Write

Subtitles path, this is only valid if the property "media-type" has the value PAROLE_MEDIA_TYPE_LOCAL_FILE.

Default value: NULL

Since 0.2

### The `"tag-available"` property

      "tag-available"            gboolean              : Read / Write

Whether tags information are available on the current stream.

Default value: FALSE

Since 0.2

### The `"title"` property

      "title"                    gchar*                : Read / Write

Title.

Default value: NULL

Since 0.2

### The `"track"` property

      "track"                    guint                 : Read / Write

Currently playing track, this is only valid if "media-type": is PAROLE_MEDIA_TYPE_CDDA.

Allowed values: [1,99]

Default value: 1

Since 0.2

### The `"uri"` property

      "uri"                      gchar*                : Read / Write

Currently loaded uri.

Default value: NULL

Since 0.2

### The `"video-height"` property

      "video-height"             gint                  : Read / Write

Video height.

Allowed values: >= 0

Default value: 0

Since 0.2

### The `"video-width"` property

      "video-width"              gint                  : Read / Write

Video width.

Allowed values: >= 0

Default value: 0

Since 0.2

### The `"year"` property

      "year"                     gchar*                : Read / Write

Year.

Default value: NULL

Since 0.2

## See Also

ParoleProviderPlayer