GrlMediaVideo

## GrlMediaVideo GrlMediaVideo — A multimedia data for video |

## Functions

GrlMedia * | grl_media_video_new ()
void | grl_media_video_add_director ()
void | grl_media_video_add_performer ()
void | grl_media_video_add_producer ()
void | grl_media_video_add_url_data ()
const gchar * | grl_media_video_get_director ()
const gchar * | grl_media_video_get_director_nth ()
gint | grl_media_video_get_episode ()
gfloat | grl_media_video_get_framerate ()
gint | grl_media_video_get_height ()
const gchar * | grl_media_video_get_original_title ()
const gchar * | grl_media_video_get_performer ()
const gchar * | grl_media_video_get_performer_nth ()
const gchar * | grl_media_video_get_producer ()
const gchar * | grl_media_video_get_producer_nth ()
gint | grl_media_video_get_season ()
const gchar * | grl_media_video_get_show ()
const gchar * | grl_media_video_get_url_data ()
const gchar * | grl_media_video_get_url_data_nth ()
gint | grl_media_video_get_width ()
void | grl_media_video_set_director ()
void | grl_media_video_set_episode ()
void | grl_media_video_set_framerate ()
void | grl_media_video_set_height ()
void | grl_media_video_set_original_title ()
void | grl_media_video_set_performer ()
void | grl_media_video_set_producer ()
void | grl_media_video_set_season ()
void | grl_media_video_set_show ()
void | grl_media_video_set_size ()
void | grl_media_video_set_url_data ()
void | grl_media_video_set_width ()

## Types and Values

struct | GrlMediaVideo
struct | GrlMediaVideoClass

## Object Hierarchy

        GObject
        ╰── GrlData
            ╰── GrlMedia
                ╰── GrlMediaVideo

## Includes

    #include <grilo.h>

## Description

This high level class represents an video multimedia item. It has methods to set and get properties like framerate, width, height, and so on.

## Functions

### grl_media_video_new ()

    GrlMedia *
    grl_media_video_new (void);

Creates a new data video object.

#### Returns

a newly-allocated data video.

Since 0.1.4

### grl_media_video_add_director ()

    void
    grl_media_video_add_director (GrlMediaVideo *video,
                                  const gchar *director);

Adds the director of the movie.

#### Parameters

video | a GrlMediaVideo |
director | director of the movie |

Since 0.2.3

### grl_media_video_add_performer ()

    void
    grl_media_video_add_performer (GrlMediaVideo *video,
                                   const gchar *performer);

Adds the actor performing in the movie.

#### Parameters

video | a GrlMediaVideo |
performer | an actor performing in the movie |

Since 0.2.3

### grl_media_video_add_producer ()

    void
    grl_media_video_add_producer (GrlMediaVideo *video,
                                  const gchar *producer);

Adds the producer of the movie.

#### Parameters

video | a GrlMediaVideo |
producer | producer of the movie |

Since 0.2.3

### grl_media_video_add_url_data ()

    void
    grl_media_video_add_url_data (GrlMediaVideo *video,
                                  const gchar *url,
                                  const gchar *mime,
                                  gfloat framerate,
                                  gint width,
                                  gint height);

Sets all the keys related with the URL of a media resource and adds it to `video` (useful for resources with more than one URL).

#### Parameters

video | the media instance |
url | a video's url |
mime | video mime-type |
framerate | video framerate, or -1 to ignore |
width | video width, or -1 to ignore |
height | video height, or -1 to ignore |

Since 0.1.10

### grl_media_video_get_director ()

    const gchar *
    grl_media_video_get_director (GrlMediaVideo *video);

#### Parameters

video | a GrlMediaVideo |

#### Returns

the director of the movie (owned by `video` ).

[transfer none]

Since 0.2.3

### grl_media_video_get_director_nth ()

    const gchar *
    grl_media_video_get_director_nth (GrlMediaVideo *video,
                                      guint index);

#### Parameters

video | a GrlMediaVideo |
index | element to retrieve |

#### Returns

the director of the movie (owned by `video` ).

[transfer none]

Since 0.2.3

### grl_media_video_get_episode ()

    gint
    grl_media_video_get_episode (GrlMediaVideo *video);

#### Parameters

video | the media instance |

#### Returns

the episode number of the video

Since 0.1.11

### grl_media_video_get_framerate ()

    gfloat
    grl_media_video_get_framerate (GrlMediaVideo *video);

#### Parameters

video | the media instance |

#### Returns

the framerate of the video

Since 0.1.4

### grl_media_video_get_height ()

    gint
    grl_media_video_get_height (GrlMediaVideo *video);

#### Parameters

video | the media instance |

#### Returns

the height of the video

Since 0.1.4

### grl_media_video_get_original_title ()

    const gchar *
    grl_media_video_get_original_title (GrlMediaVideo *video);

#### Parameters

video | a GrlMediaVideo |

#### Returns

the original, untranslated title of the movie (owned by `video` ).

[transfer none]

Since 0.2.3

### grl_media_video_get_performer ()

    const gchar *
    grl_media_video_get_performer (GrlMediaVideo *video);

#### Parameters

video | a GrlMediaVideo |

#### Returns

the actor performing in the movie (owned by `video` ).

[transfer none]

Since 0.2.3

### grl_media_video_get_performer_nth ()

    const gchar *
    grl_media_video_get_performer_nth (GrlMediaVideo *video,
                                       guint index);

#### Parameters

video | a GrlMediaVideo |
index | element to retrieve |

#### Returns

the actor performing in the movie (owned by `video` ).

[transfer none]

Since 0.2.3

### grl_media_video_get_producer ()

    const gchar *
    grl_media_video_get_producer (GrlMediaVideo *video);

#### Parameters

video | a GrlMediaVideo |

#### Returns

the producer of the movie (owned by `video` ).

[transfer none]

Since 0.2.3

### grl_media_video_get_producer_nth ()

    const gchar *
    grl_media_video_get_producer_nth (GrlMediaVideo *video,
                                      guint index);

#### Parameters

video | a GrlMediaVideo |
index | element to retrieve |

#### Returns

the producer of the movie (owned by `video` ).

[transfer none]

Since 0.2.3

### grl_media_video_get_season ()

    gint
    grl_media_video_get_season (GrlMediaVideo *video);

#### Parameters

video | the media instance |

#### Returns

the season number of the video

Since 0.1.11

### grl_media_video_get_show ()

    const gchar *
    grl_media_video_get_show (GrlMediaVideo *video);

#### Parameters

video | the media instance |

#### Returns

the show title of the video

Since 0.1.11

### grl_media_video_get_url_data ()

    const gchar *
    grl_media_video_get_url_data (GrlMediaVideo *video,
                                  gchar **mime,
                                  gfloat *framerate,
                                  gint *width,
                                  gint *height);

#### Parameters

video | the media instance |
mime | the url mime-type, or `NULL` to ignore. | [out][transfer none]
framerate | the url framerate, or `NULL` to ignore |
width | the url width, or `NULL` to ignore |
height | the url height, or `NULL` to ignore |

#### Returns

all the keys related with the URL of a video resource in one go.

Since 0.1.10

### grl_media_video_get_url_data_nth ()

    const gchar *
    grl_media_video_get_url_data_nth (GrlMediaVideo *video,
                                      guint index,
                                      gchar **mime,
                                      gfloat *framerate,
                                      gint *width,
                                      gint *height);

#### Parameters

video | the media instance |
index | element to retrieve |
mime | the url mime-type, or `NULL` to ignore. | [out][transfer none]
framerate | the url framerate, or `NULL` to ignore |
width | the url width, or `NULL` to ignore |
height | the url height, or `NULL` to ignore |

#### Returns

all the keys related with the URL number `index` of a video resource in one go.

Since 0.1.10

### grl_media_video_get_width ()

    gint
    grl_media_video_get_width (GrlMediaVideo *video);

#### Parameters

video | the media instance |

#### Returns

the width of the video

Since 0.1.4

### grl_media_video_set_director ()

    void
    grl_media_video_set_director (GrlMediaVideo *video,
                                  const gchar *director);

Sets the director of the movie.

#### Parameters

video | a GrlMediaVideo |
director | director of the movie |

Since 0.2.3

### grl_media_video_set_episode ()

    void
    grl_media_video_set_episode (GrlMediaVideo *video,
                                 gint episode);

Sets the episode number of the video

#### Parameters

video | the media instance |
episode | the video's episode |

Since 0.1.11

### grl_media_video_set_framerate ()

    void
    grl_media_video_set_framerate (GrlMediaVideo *video,
                                   gfloat framerate);

Set the framerate of the video

#### Parameters

video | the media instance |
framerate | the video's framerate |

Since 0.1.4

### grl_media_video_set_height ()

    void
    grl_media_video_set_height (GrlMediaVideo *video,
                                gint height);

Set the height of the video

#### Parameters

video | the media instance |
height | the video's height |

Since 0.1.4

### grl_media_video_set_original_title ()

    void
    grl_media_video_set_original_title (GrlMediaVideo *video,
                                        const gchar *original_title);

Sets the original, untranslated title of the movie.

#### Parameters

video | a GrlMediaVideo |
original_title | original, untranslated title of the movie |

Since 0.2.3

### grl_media_video_set_performer ()

    void
    grl_media_video_set_performer (GrlMediaVideo *video,
                                   const gchar *performer);

Sets the actor performing in the movie.

#### Parameters

video | a GrlMediaVideo |
performer | an actor performing in the movie |

Since 0.2.3

### grl_media_video_set_producer ()

    void
    grl_media_video_set_producer (GrlMediaVideo *video,
                                  const gchar *producer);

Sets the producer of the movie.

#### Parameters

video | a GrlMediaVideo |
producer | producer of the movie |

Since 0.2.3

### grl_media_video_set_season ()

    void
    grl_media_video_set_season (GrlMediaVideo *video,
                                gint season);

Sets the season number of the video

#### Parameters

video | the media instance |
season | the video's season |

Since 0.1.11

### grl_media_video_set_show ()

    void
    grl_media_video_set_show (GrlMediaVideo *video,
                              const gchar *show);

Sets the show title of the video

#### Parameters

video | the media instance |
show | the video's show name |

Since 0.1.11

### grl_media_video_set_size ()

    void
    grl_media_video_set_size (GrlMediaVideo *video,
                              gint width,
                              gint height);

Set the width and the height of the video

#### Parameters

video | the media instance |
width | the video's width |
height | the video's height |

Since 0.1.4

### grl_media_video_set_url_data ()

    void
    grl_media_video_set_url_data (GrlMediaVideo *video,
                                  const gchar *url,
                                  const gchar *mime,
                                  gfloat framerate,
                                  gint width,
                                  gint height);

Sets all the keys related with the URL of a video resource in one go.

#### Parameters

video | the media instance |
url | the video's url |
mime | video mime-type |
framerate | video framerate, or -1 to ignore |
width | video width, or -1 to ignore |
height | video height, or -1 to ignore |

Since 0.1.10

### grl_media_video_set_width ()

    void
    grl_media_video_set_width (GrlMediaVideo *video,
                               gint width);

Set the width of the video

#### Parameters

video | the media instance |
width | the video's width |

Since 0.1.4

## Types and Values

### struct GrlMediaVideo

    struct GrlMediaVideo;

### struct GrlMediaVideoClass

    struct GrlMediaVideoClass {
      GrlMediaClass parent_class;
    };

Grilo Media video Class

#### Members

GrlMediaClass `parent_class`; | the parent class structure |

## See Also

GrlConfig, GrlMediaBox, GrlMediaAudio, GrlMediaImage