Top | ![]() |
![]() |
![]() |
![]() |
This high level class represents an video multimedia item. It has methods to set and get properties like framerate, width, height, and so on.
GrlMedia *
grl_media_video_new (void
);
Creates a new data video object.
Since 0.1.4
void grl_media_video_add_director (GrlMediaVideo *video
,const gchar *director
);
Adds the 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.
Since 0.2.3
void grl_media_video_add_producer (GrlMediaVideo *video
,const gchar *producer
);
Adds the 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).
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
const gchar *
grl_media_video_get_director (GrlMediaVideo *video
);
Since 0.2.3
const gchar * grl_media_video_get_director_nth (GrlMediaVideo *video
,guint index
);
Since 0.2.3
gint
grl_media_video_get_episode (GrlMediaVideo *video
);
Since 0.1.11
gfloat
grl_media_video_get_framerate (GrlMediaVideo *video
);
Since 0.1.4
const gchar *
grl_media_video_get_original_title (GrlMediaVideo *video
);
Since 0.2.3
const gchar *
grl_media_video_get_performer (GrlMediaVideo *video
);
Since 0.2.3
const gchar * grl_media_video_get_performer_nth (GrlMediaVideo *video
,guint index
);
Since 0.2.3
const gchar *
grl_media_video_get_producer (GrlMediaVideo *video
);
Since 0.2.3
const gchar * grl_media_video_get_producer_nth (GrlMediaVideo *video
,guint index
);
Since 0.2.3
const gchar *
grl_media_video_get_show (GrlMediaVideo *video
);
Since 0.1.11
const gchar * grl_media_video_get_url_data (GrlMediaVideo *video
,gchar **mime
,gfloat *framerate
,gint *width
,gint *height
);
video |
the media instance |
|
mime |
the url mime-type, or |
[out][transfer none] |
framerate |
the url framerate, or |
|
width |
the url width, or |
|
height |
the url height, or |
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
);
video |
the media instance |
|
index |
element to retrieve |
|
mime |
the url mime-type, or |
[out][transfer none] |
framerate |
the url framerate, or |
|
width |
the url width, or |
|
height |
the url height, or |
Since 0.1.10
void grl_media_video_set_director (GrlMediaVideo *video
,const gchar *director
);
Sets the 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
Since 0.1.11
void grl_media_video_set_framerate (GrlMediaVideo *video
,gfloat framerate
);
Set the framerate of the video
Since 0.1.4
void grl_media_video_set_height (GrlMediaVideo *video
,gint height
);
Set the height of the video
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.
Since 0.2.3
void grl_media_video_set_performer (GrlMediaVideo *video
,const gchar *performer
);
Sets the 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.
Since 0.2.3
void grl_media_video_set_season (GrlMediaVideo *video
,gint season
);
Sets the season number of the video
Since 0.1.11
void grl_media_video_set_show (GrlMediaVideo *video
,const gchar *show
);
Sets the show title of the video
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
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.
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
void grl_media_video_set_width (GrlMediaVideo *video
,gint width
);
Set the width of the video
Since 0.1.4