YouTubeVideo
Object Hierarchy:
Description:
All the fields in the YouTubeVideo structure are private and should never be accessed
directly.
Namespace: GData
Package: libgdata
Content:
Properties:
-
public string aspect_ratio { set; get; }
The aspect ratio of the video. A null value means the aspect ratio is unknown (it could
still be a widescreen video). A value of
YOUTUBE_ASPECT_RATIO_WIDESCREEN means the video is definitely widescreen.
-
public double average_rating { get; }
The average rating of the video, over all the ratings it's received.
-
public MediaCategory category { set; get; }
Specifies a genre or developer tag that describes the video.
-
public YouTubeCredit credit { get; }
Identifies the owner of the video.
-
public string description { set; get; }
A summary or description of the video.
-
public uint duration { get; }
The duration of the video in seconds.
-
public uint favorite_count { get; }
The number of users who have added the video to their favorites.
-
public bool is_draft { set; get; }
Indicates whether the video is in draft, or unpublished, status.
-
public bool is_private { set; get; }
-
public string[] keywords { set; get; }
A null-terminated array of words associated with the video.
-
public double latitude { set; get; }
The location as a latitude coordinate associated with this video. Valid latitudes range from -90.0
to 90.0 inclusive.
-
public string location { set; get; }
Descriptive text about the location where the video was taken.
-
public double longitude { set; get; }
The location as a longitude coordinate associated with this video. Valid longitudes range from
-180.0 to 180.0 inclusive.
-
public uint max_rating { get; }
The maximum allowed rating for the video.
-
public uint min_rating { get; }
The minimum allowed rating for the video.
-
public string player_uri { get; }
A URI for a browser-based media player for the full-length video (i.e. the video's page on YouTube).
-
public uint rating_count { get; }
The number of times the video has been rated.
-
public int64 recorded { set; get; }
Specifies the time the video was originally recorded.
-
public YouTubeState state { get; }
Information describing the state of the video. If this is non-%NULL, the video is not playable. It
points to a YouTubeState.
-
public int64 uploaded { get; }
Specifies the time the video was originally uploaded to YouTube.
-
public string video_id { get; }
Specifies a unique ID which YouTube uses to identify the video. For example: qz8EfkS4KK0.
-
public uint view_count { get; }
The number of times the video has been viewed.
Static methods:
Creation methods:
Methods:
-
public YouTubePermission get_access_control (string action)
Gets the permission associated with the given action on the
YouTubeVideo. If the given action doesn't have a permission set on
the video, DENIED is returned.
-
public unowned string get_aspect_ratio ()
-
public weak MediaCategory get_category ()
-
public void get_coordinates (out double latitude, out double longitude)
Gets the latitude and
longitude properties, setting the out parameters to them. If either
latitude or longitude is null, that parameter will not be set. If the coordinates are unset, latitude and
longitude will be set to G_MAXDOUBLE.
-
public weak YouTubeCredit get_credit ()
-
public unowned string get_description ()
-
public uint get_duration ()
-
public uint get_favorite_count ()
-
public weak string[] get_keywords ()
-
public unowned string get_location ()
-
public unowned string get_player_uri ()
-
public void get_rating (out uint min, out uint max, out uint count, out double average)
Gets various properties of the ratings on the video.
-
public int64 get_recorded ()
Gets the recorded property. If the
property is unset, -1 will be returned.
-
public weak YouTubeState get_state ()
-
public unowned List<MediaThumbnail> get_thumbnails ()
Gets a list of the thumbnails available for the video.
-
public int64 get_uploaded ()
Gets the uploaded property. If the
property is unset, -1 will be returned.
-
public unowned string get_video_id ()
-
public uint get_view_count ()
-
public bool is_restricted_in_country (string country)
Checks whether viewing of the video is restricted in country, either by its content rating,
or by the request of the producer. The return value from this function is purely informational, and no obligation is assumed.
-
public weak YouTubeContent look_up_content (string type)
Looks up a YouTubeContent from the video with the
given MIME type. The video's list of contents is a list of URIs to various formats of the video itself, such as its SWF URI or RTSP
stream.
-
public void set_access_control (string action, YouTubePermission permission)
Sets the permission associated with action on the
YouTubeVideo, allowing restriction or derestriction of various operations on
YouTube videos.
-
public void set_aspect_ratio (string? aspect_ratio)
Sets the aspect_ratio property to
specify the video's aspect ratio. If aspect_ratio is null, the property will be unset.
-
public void set_category (MediaCategory category)
Sets the category property to the new
category, category, and increments its reference count.
-
public void set_coordinates (double latitude, double longitude)
-
public void set_description (string? description)
Sets the description property to the
new description, description.
-
public void set_is_draft (bool is_draft)
Sets the is_draft property to decide
whether the video is a draft.
-
public void set_is_private (bool is_private)
Sets the is_private property to decide
whether the video is publicly viewable.
-
public void set_keywords (string[] keywords)
Sets the keywords property to the new
keyword list, keywords.
-
public void set_location (string? location)
Sets the location property to the new
location string, location.
-
public void set_recorded (int64 recorded)
Sets the recorded property to the new
recorded time, recorded.