| Grilo Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | ||||
#include <grilo.h> struct GrlMediaVideo; struct GrlMediaVideoClass; GrlMedia * grl_media_video_new (void); void grl_media_video_add_director (GrlMediaVideo *video,const gchar *director); void grl_media_video_add_performer (GrlMediaVideo *video,const gchar *performer); void grl_media_video_add_producer (GrlMediaVideo *video,const gchar *producer); void grl_media_video_add_url_data (GrlMediaVideo *video,const gchar *url,const gchar *mime,gfloat framerate,gint width,gint height); const gchar * grl_media_video_get_director (GrlMediaVideo *video); const gchar * grl_media_video_get_director_nth (GrlMediaVideo *video,guint index); gint grl_media_video_get_episode (GrlMediaVideo *video); gfloat grl_media_video_get_framerate (GrlMediaVideo *video); gint grl_media_video_get_height (GrlMediaVideo *video); const gchar * grl_media_video_get_original_title (GrlMediaVideo *video); const gchar * grl_media_video_get_performer (GrlMediaVideo *video); const gchar * grl_media_video_get_performer_nth (GrlMediaVideo *video,guint index); const gchar * grl_media_video_get_producer (GrlMediaVideo *video); const gchar * grl_media_video_get_producer_nth (GrlMediaVideo *video,guint index); gint grl_media_video_get_season (GrlMediaVideo *video); const gchar * grl_media_video_get_show (GrlMediaVideo *video); const gchar * grl_media_video_get_url_data (GrlMediaVideo *video,gchar **mime,gfloat *framerate,gint *width,gint *height); const gchar * grl_media_video_get_url_data_nth (GrlMediaVideo *video,guint index,gchar **mime,gfloat *framerate,gint *width,gint *height); gint grl_media_video_get_width (GrlMediaVideo *video); void grl_media_video_set_director (GrlMediaVideo *video,const gchar *director); void grl_media_video_set_episode (GrlMediaVideo *video,gint episode); void grl_media_video_set_framerate (GrlMediaVideo *video,gfloat framerate); void grl_media_video_set_height (GrlMediaVideo *video,gint height); void grl_media_video_set_original_title (GrlMediaVideo *video,const gchar *original_title); void grl_media_video_set_performer (GrlMediaVideo *video,const gchar *performer); void grl_media_video_set_producer (GrlMediaVideo *video,const gchar *producer); void grl_media_video_set_season (GrlMediaVideo *video,gint season); void grl_media_video_set_show (GrlMediaVideo *video,const gchar *show); void grl_media_video_set_size (GrlMediaVideo *video,gint width,gint height); void grl_media_video_set_url_data (GrlMediaVideo *video,const gchar *url,const gchar *mime,gfloat framerate,gint width,gint height); void grl_media_video_set_width (GrlMediaVideo *video,gint width);
This high level class represents an video multimedia item. It has methods to set and get properties like framerate, width, height, and so on.
struct GrlMediaVideoClass {
GrlMediaClass parent_class;
};
Grilo Media video Class
GrlMediaClass |
the parent class structure |
GrlMedia * grl_media_video_new (void);
Creates a new data video object.
Returns : |
a newly-allocated data video. |
Since 0.1.4
void grl_media_video_add_director (GrlMediaVideo *video,const gchar *director);
Adds the director of the movie.
|
a GrlMediaVideo |
|
director of the movie |
Since 0.2.3
void grl_media_video_add_performer (GrlMediaVideo *video,const gchar *performer);
Adds the actor performing in the movie.
|
a GrlMediaVideo |
|
an actor performing in the movie |
Since 0.2.3
void grl_media_video_add_producer (GrlMediaVideo *video,const gchar *producer);
Adds the producer of the movie.
|
a GrlMediaVideo |
|
producer of the movie |
Since 0.2.3
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).
|
the media instance |
|
a video's url |
|
video mime-type |
|
video framerate, or -1 to ignore |
|
video width, or -1 to ignore |
|
video height, or -1 to ignore |
Since 0.1.10
const gchar * grl_media_video_get_director (GrlMediaVideo *video);
|
a GrlMediaVideo |
Returns : |
the director of the movie (owned by video). [transfer none]
|
Since 0.2.3
const gchar * grl_media_video_get_director_nth (GrlMediaVideo *video,guint index);
|
a GrlMediaVideo |
|
element to retrieve |
Returns : |
the director of the movie (owned by video). [transfer none]
|
Since 0.2.3
gint grl_media_video_get_episode (GrlMediaVideo *video);
|
the media instance |
Returns : |
the episode number of the video |
Since 0.1.11
gfloat grl_media_video_get_framerate (GrlMediaVideo *video);
|
the media instance |
Returns : |
the framerate of the video |
Since 0.1.4
gint grl_media_video_get_height (GrlMediaVideo *video);
|
the media instance |
Returns : |
the height of the video |
Since 0.1.4
const gchar * grl_media_video_get_original_title (GrlMediaVideo *video);
|
a GrlMediaVideo |
Returns : |
the original, untranslated title of the movie (owned by video). [transfer none]
|
Since 0.2.3
const gchar * grl_media_video_get_performer (GrlMediaVideo *video);
|
a GrlMediaVideo |
Returns : |
the actor performing in the movie (owned by video). [transfer none]
|
Since 0.2.3
const gchar * grl_media_video_get_performer_nth (GrlMediaVideo *video,guint index);
|
a GrlMediaVideo |
|
element to retrieve |
Returns : |
the actor performing in the movie (owned by video). [transfer none]
|
Since 0.2.3
const gchar * grl_media_video_get_producer (GrlMediaVideo *video);
|
a GrlMediaVideo |
Returns : |
the producer of the movie (owned by video). [transfer none]
|
Since 0.2.3
const gchar * grl_media_video_get_producer_nth (GrlMediaVideo *video,guint index);
|
a GrlMediaVideo |
|
element to retrieve |
Returns : |
the producer of the movie (owned by video). [transfer none]
|
Since 0.2.3
gint grl_media_video_get_season (GrlMediaVideo *video);
|
the media instance |
Returns : |
the season number of the video |
Since 0.1.11
const gchar * grl_media_video_get_show (GrlMediaVideo *video);
|
the media instance |
Returns : |
the show title of the video |
Since 0.1.11
const gchar * grl_media_video_get_url_data (GrlMediaVideo *video,gchar **mime,gfloat *framerate,gint *width,gint *height);
|
the media instance |
|
the url mime-type, or NULL to ignore. [out][transfer none]
|
|
the url framerate, or NULL to ignore |
|
the url width, or NULL to ignore |
|
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
const gchar * grl_media_video_get_url_data_nth (GrlMediaVideo *video,guint index,gchar **mime,gfloat *framerate,gint *width,gint *height);
|
the media instance |
|
element to retrieve |
|
the url mime-type, or NULL to ignore. [out][transfer none]
|
|
the url framerate, or NULL to ignore |
|
the url width, or NULL to ignore |
|
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
gint grl_media_video_get_width (GrlMediaVideo *video);
|
the media instance |
Returns : |
the width of the video |
Since 0.1.4
void grl_media_video_set_director (GrlMediaVideo *video,const gchar *director);
Sets the director of the movie.
|
a GrlMediaVideo |
|
director of the movie |
Since 0.2.3
void grl_media_video_set_episode (GrlMediaVideo *video,gint episode);
Sets the episode number of the video
|
the media instance |
|
the video's episode |
Since 0.1.11
void grl_media_video_set_framerate (GrlMediaVideo *video,gfloat framerate);
Set the framerate of the video
|
the media instance |
|
the video's framerate |
Since 0.1.4
void grl_media_video_set_height (GrlMediaVideo *video,gint height);
Set the height of the video
|
the media instance |
|
the video's height |
Since 0.1.4
void grl_media_video_set_original_title (GrlMediaVideo *video,const gchar *original_title);
Sets the original, untranslated title of the movie.
|
a GrlMediaVideo |
|
original, untranslated title of the movie |
Since 0.2.3
void grl_media_video_set_performer (GrlMediaVideo *video,const gchar *performer);
Sets the actor performing in the movie.
|
a GrlMediaVideo |
|
an actor performing in the movie |
Since 0.2.3
void grl_media_video_set_producer (GrlMediaVideo *video,const gchar *producer);
Sets the producer of the movie.
|
a GrlMediaVideo |
|
producer of the movie |
Since 0.2.3
void grl_media_video_set_season (GrlMediaVideo *video,gint season);
Sets the season number of the video
|
the media instance |
|
the video's season |
Since 0.1.11
void grl_media_video_set_show (GrlMediaVideo *video,const gchar *show);
Sets the show title of the video
|
the media instance |
|
the video's show name |
Since 0.1.11
void grl_media_video_set_size (GrlMediaVideo *video,gint width,gint height);
Set the width and the height of the video
|
the media instance |
|
the video's width |
|
the video's height |
Since 0.1.4
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.
|
the media instance |
|
the video's url |
|
video mime-type |
|
video framerate, or -1 to ignore |
|
video width, or -1 to ignore |
|
video height, or -1 to ignore |
Since 0.1.10
void grl_media_video_set_width (GrlMediaVideo *video,gint width);
Set the width of the video
|
the media instance |
|
the video's width |
Since 0.1.4