Class

GrlMedia

Description

class Grl.Media : Grl.Data
{
  /* No available fields */
}
No description available.

Ancestors

Constructors

grl_media_audio_new

Creates a new media audio object.

since: 0.1.4

grl_media_container_new

Creates a new media container object.

since: 0.3.0

grl_media_image_new

Creates a new media image object.

since: 0.1.4

grl_media_new

Creates a new data media object.

grl_media_video_new

Creates a new media video object.

since: 0.1.4

Functions

grl_media_unserialize

Unserializes a GrlMedia.

since: 0.1.6

Instance methods

grl_media_add_artist

Adds a new artist to media.

since: 0.3.0

grl_media_add_author

Adds a new author to media.

since: 0.1.10

grl_media_add_director

Adds the director of the media.

since: 0.3.0

grl_media_add_external_player

Adds a new external player to media.

since: 0.1.10

grl_media_add_external_url

Adds a new external url to media.

since: 0.1.10

grl_media_add_genre

Adds a new genre to media.

since: 0.3.0

grl_media_add_keyword

Adds the keyword describing the media.

since: 0.2.3

grl_media_add_lyrics

Adds a new lyrics to media.

since: 0.3.0

grl_media_add_mb_artist_id

Adds a new MusicBrainz artist id to media.

since: 0.3.0

grl_media_add_performer

Adds the actor performing in the movie.

since: 0.3.0

grl_media_add_producer

Adds the producer of the media.

since: 0.3.0

grl_media_add_region_data

Adds regional publication and certification information for region.

since: 0.2.3

grl_media_add_thumbnail

Adds a new thumbnail to media.

since: 0.1.10

grl_media_add_thumbnail_binary

Adds a new thumbnail to media.

since: 0.1.10

grl_media_add_url_data

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

since: 0.3.0

grl_media_get_album
No description available.

since: 0.3.0

grl_media_get_album_artist
No description available.

since: 0.3.1

grl_media_get_album_disc_number
No description available.

since: 0.3.1

grl_media_get_artist
No description available.

since: 0.3.0

grl_media_get_artist_nth
No description available.

since: 0.3.0

grl_media_get_author
No description available.

since: 0.1.4

grl_media_get_author_nth
No description available.

since: 0.1.10

grl_media_get_bitrate
No description available.

since: 0.3.0

grl_media_get_camera_model
No description available.

since: 0.3.0

grl_media_get_certificate

Returns the media’s first age certificate. This should usually be the media’s most relevant age certificate. Use grl_media_get_region_data_nth() to get other age certificates.

since: 0.1.6

grl_media_get_childcount

Number of children of this container.

since: 0.3.0

grl_media_get_composer
No description available.

since: 0.3.1

grl_media_get_composer_nth
No description available.

since: 0.3.1

grl_media_get_creation_date
No description available.

since: 0.2.0

grl_media_get_description
No description available.

since: 0.1.4

grl_media_get_director
No description available.

since: 0.3.0

grl_media_get_director_nth
No description available.

since: 0.3.0

grl_media_get_duration
No description available.

since: 0.1.4

grl_media_get_episode
No description available.

since: 0.3.0

grl_media_get_episode_title
No description available.

since: 0.3.0

grl_media_get_exposure_time
No description available.

since: 0.3.0

grl_media_get_external_url
No description available.

since: 0.1.6

grl_media_get_external_url_nth
No description available.

since: 0.1.10

grl_media_get_favourite
No description available.

since: 0.2.3

grl_media_get_flash_used
No description available.

since: 0.3.0

grl_media_get_framerate
No description available.

since: 0.3.0

grl_media_get_genre
No description available.

since: 0.3.0

grl_media_get_genre_nth
No description available.

since: 0.3.0

grl_media_get_height
No description available.

since: 0.3.0

grl_media_get_id
No description available.

since: 0.1.4

grl_media_get_iso_speed
No description available.

since: 0.3.0

grl_media_get_keyword
No description available.

since: 0.2.3

grl_media_get_keyword_nth
No description available.

since: 0.2.3

grl_media_get_last_played
No description available.

since: 0.3.0

grl_media_get_last_position
No description available.

since: 0.1.4

grl_media_get_license
No description available.

since: 0.1.6

grl_media_get_lyrics
No description available.

since: 0.3.0

grl_media_get_lyrics_nth
No description available.

since: 0.3.0

grl_media_get_mb_album_id
No description available.

deprecated: 0.3.8 since: 0.3.0

grl_media_get_mb_artist_id
No description available.

since: 0.3.0

grl_media_get_mb_artist_id_nth
No description available.

since: 0.3.0

grl_media_get_mb_recording_id
No description available.

since: 0.3.0

grl_media_get_mb_release_group_id
No description available.

since: 0.3.8

grl_media_get_mb_release_id
No description available.

since: 0.3.8

grl_media_get_mb_track_id
No description available.

since: 0.3.0

grl_media_get_media_type

Gets the “media-type” property.

since: 0.3.0

grl_media_get_mime
No description available.

since: 0.1.4

grl_media_get_modification_date
No description available.

since: 0.2.0

grl_media_get_orientation
No description available.

since: 0.3.0

grl_media_get_original_title
No description available.

since: 0.3.0

grl_media_get_performer
No description available.

since: 0.3.0

grl_media_get_performer_nth
No description available.

since: 0.3.0

grl_media_get_play_count
No description available.

since: 0.1.4

grl_media_get_player
No description available.

since: 0.1.6

grl_media_get_player_nth
No description available.

since: 0.1.10

grl_media_get_producer
No description available.

since: 0.3.0

grl_media_get_producer_nth
No description available.

since: 0.3.0

grl_media_get_publication_date
No description available.

since: 0.2.0

grl_media_get_rating
No description available.

since: 0.1.5

grl_media_get_region
No description available.

since: 0.2.3

grl_media_get_region_data

Returns the media’s age certificate and publication date for the first region. This should usually be the media’s most relevant region. Use grl_media_get_region_data_nth() to get the age certificate and publication date for other regions.

since: 0.2.3

grl_media_get_region_data_nth

Returns the media’s age certificate and publication date for one region. Use grl_data_length() with GRL_METADATA_KEY_REGION to discover how many regions are available. For instance: <![CDATA[ guint count = grl_data_length (GRL_DATA (media), GRL_METADATA_KEY_REGION); guint i; for (i = 0; i < count; ++i) { const GDateTime publication_date = NULL; const gchar certificate = NULL; const gchar* region = grl_media_get_region_data_nth (media, i, &publication_date, &certificate); … } ]]>

since: 0.2.3

grl_media_get_season
No description available.

since: 0.3.0

grl_media_get_show
No description available.

since: 0.3.0

grl_media_get_site
No description available.

since: 0.1.4

grl_media_get_size
No description available.

since: 0.2.10

grl_media_get_source
No description available.

since: 0.1.4

grl_media_get_start_time
No description available.

since: 0.1.19

grl_media_get_studio
No description available.

since: 0.1.6

grl_media_get_thumbnail
No description available.

since: 0.1.4

grl_media_get_thumbnail_binary
No description available.

since: 0.1.9

grl_media_get_thumbnail_binary_nth
No description available.

since: 0.1.10

grl_media_get_thumbnail_nth
No description available.

since: 0.1.10

grl_media_get_title
No description available.

since: 0.1.4

grl_media_get_track_number
No description available.

since: 0.3.0

grl_media_get_url
No description available.

since: 0.1.4

grl_media_get_url_data
No description available.

since: 0.3.0

grl_media_get_url_data_nth
No description available.

since: 0.3.0

grl_media_get_width
No description available.

since: 0.3.0

grl_media_is_audio

Check if media is an audio.

since: 0.3.0

grl_media_is_container

Check if media is a container.

since: 0.3.0

grl_media_is_image

Check if media is an image.

since: 0.3.0

grl_media_is_video

Check if media is a video.

since: 0.3.0

grl_media_serialize

Serializes a GrlMedia into a string. It does a basic serialization.

since: 0.1.6

grl_media_serialize_extended

Serializes a GrlMedia into a string.

since: 0.1.6

grl_media_set_album

Set the album of the media.

since: 0.3.0

grl_media_set_album_artist

Set the main artist of the album of the media.

since: 0.3.1

grl_media_set_album_disc_number

Set the disc number of the media for multi-disc album sets.

since: 0.3.1

grl_media_set_artist

Set the artist of the media.

since: 0.3.0

grl_media_set_author

Set the media’s author.

since: 0.1.4

grl_media_set_bitrate

Set the bitrate of the media.

since: 0.3.0

grl_media_set_camera_model

Set the camera_model of the media.

since: 0.3.0

grl_media_set_certificate

Set the media’s first age certification. This should usually be the media’s most relevant age certificate. Use grl_media_set_region_data() to set other age certificates.

since: 0.1.6

grl_media_set_childcount

Sets the number of children of this container. Use

GRL_METADATA_KEY_CHILDCOUNT_UNKNOWN if it is unknown.

since: 0.3.0

grl_media_set_composer

Set the composer of the media.

since: 0.3.1

grl_media_set_creation_date

Set the creation_date of the media.

since: 0.2.0

grl_media_set_description

Set the media’s description.

since: 0.1.4

grl_media_set_director

Sets the director of the media.

since: 0.3.0

grl_media_set_duration

Set the media’s duration.

since: 0.1.4

grl_media_set_episode

Sets the episode number of the media.

since: 0.3.0

grl_media_set_episode_title

Sets the title of an media.

since: 0.3.0

grl_media_set_exposure_time

Set the exposure_time of the media.

since: 0.3.0

grl_media_set_external_player

Set the location of a player for the media (usually a flash player)

since: 0.1.6

grl_media_set_external_url

Set an external location where users can play the media.

since: 0.1.6

grl_media_set_favourite

Set if the media is favourite or not.

since: 0.2.3

grl_media_set_flash_used

Set the flash_used of the media See http://library.gnome.org/devel/ontology/unstable/nmm-classes.html#nmm-Flash.

since: 0.3.0

grl_media_set_framerate

Set the framerate of the media.

since: 0.3.0

grl_media_set_genre

Set the genre of the media.

since: 0.3.0

grl_media_set_height

Set the height of the media.

since: 0.3.0

grl_media_set_id

Set the media identifier.

since: 0.1.4

grl_media_set_iso_speed

Set the iso_speed of the media.

since: 0.3.0

grl_media_set_keyword

Sets the keyword describing the media.

since: 0.2.3

grl_media_set_last_played

Set the media last played date.

since: 0.3.0

grl_media_set_last_position

Set the media last played position.

since: 0.1.4

grl_media_set_license

Set the media license.

since: 0.1.6

grl_media_set_lyrics

Set the lyrics of the media.

since: 0.3.0

grl_media_set_mb_album_id

Set the MusicBrainz album identifier of the media.

deprecated: 0.3.8 since: 0.3.0

grl_media_set_mb_artist_id

Set the MusicBrainz artist identifier of the media.

since: 0.3.0

grl_media_set_mb_recording_id

Set the MusicBrainz recording identifier of the media.

since: 0.3.0

grl_media_set_mb_release_group_id

Set the MusicBrainz Release Group identifier of the media.

since: 0.3.8

grl_media_set_mb_release_id

Set the MusicBrainz release identifier of the media.

since: 0.3.8

grl_media_set_mb_track_id

Set the MusicBrainz track identifier of the media.

since: 0.3.0

grl_media_set_mime

Set the media’s mime-type.

since: 0.1.4

grl_media_set_modification_date

Set the modification date of the media.

since: 0.2.0

grl_media_set_orientation

Set the orientation of the media.

since: 0.3.0

grl_media_set_original_title

Sets the original, untranslated title of the media.

since: 0.3.0

grl_media_set_performer

Sets the actor performing in the movie.

since: 0.3.0

grl_media_set_play_count

Set the media play count.

since: 0.1.4

grl_media_set_producer

Sets the producer of the media.

since: 0.3.0

grl_media_set_publication_date

Set the publication date of media.

since: 0.2.0

grl_media_set_rating

This method receives a rating and its scale and normalizes it on a scale from 0…5 to match the usual five-star rating.

since: 0.1.5

grl_media_set_region

Sets the region where media was published.

since: 0.2.3

grl_media_set_region_data

Sets regional publication and certification information for region.

since: 0.2.3

grl_media_set_season

Sets the season number of the media.

since: 0.3.0

grl_media_set_show

Sets the show title of the media.

since: 0.3.0

grl_media_set_site

Set the media’s site. A site is a website about the media such as a studio’s promotional website for a movie.

since: 0.1.4

grl_media_set_size

Set the size of the media.

since: 0.2.10

grl_media_set_source

Set the media’s source.

since: 0.1.4

grl_media_set_studio

Set the media studio.

since: 0.1.6

grl_media_set_thumbnail

Set the media’s thumbnail URL.

since: 0.1.4

grl_media_set_thumbnail_binary

Set the media’s binary thumbnail.

since: 0.1.9

grl_media_set_title

Set the media’s title.

since: 0.1.4

grl_media_set_track_number

Set the track number of the media.

since: 0.3.0

grl_media_set_url

Set the media’s URL.

since: 0.1.4

grl_media_set_url_data

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

since: 0.3.0

grl_media_set_width

Set the width of the media.

since: 0.3.0

Methods inherited from GrlData (35)

Please see GrlData for a full list of methods.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

Grl.Media:media-type
No description available.

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct GrlMediaClass {
  GrlDataClass parent_class;
  
}

Grilo Media Class.

Class members
parent_class: GrlDataClass

The parent class structure.