YouTubeVideo
Object Hierarchy:
Description:
[
CCode ( lower_case_csuffix =
"youtube_video" , type_id =
"gdata_youtube_video_get_type ()" ) ]
public class YouTubeVideo :
Entry,
Commentable
All the fields in the YouTubeVideo structure are private and should never be accessed directly.
Content:
Properties:
- public string aspect_ratio { get; set; }
The aspect ratio of the video.
- public double average_rating { get; }
The average rating of the video, over all the ratings it's received.
- public MediaCategory category { get; set; }
Specifies a genre or developer tag that describes the video.
- public YouTubeCredit credit { get; }
Identifies the owner of the video.
- public string description { get; set; }
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 { get; set; }
Indicates whether the video is in draft, or unpublished, status.
- public bool is_private { get; set; }
- public string[] keywords { get; set; }
A null-terminated array of words
associated with the video.
- public double latitude { get; set; }
The location as a latitude coordinate associated with this video.
- public string location { get; set; }
Descriptive text about the location where the video was taken.
- public double longitude { get; set; }
The location as a longitude coordinate associated with this video.
- 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.
- public uint rating_count { get; }
The number of times the video has been rated.
- public int64 recorded { get; set; }
Specifies the time the video was originally recorded.
- public YouTubeState state { get; }
Information describing the state of the video.
- 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.
- 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.
- public unowned string get_aspect_ratio ()
- public unowned MediaCategory get_category ()
- public void get_coordinates (out double latitude, out double longitude)
- public unowned YouTubeCredit get_credit ()
- public unowned string get_description ()
- public uint get_duration ()
- public uint get_favorite_count ()
- public unowned string[] get_keywords ()
- public unowned string get_location ()
- public unowned string get_media_rating (string rating_type)
Returns the rating of the given type for the video, if one exists.
- 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 ()
- public unowned YouTubeState get_state ()
- public unowned List<MediaThumbnail> get_thumbnails ()
Gets a list of the thumbnails available for the video.
- public int64 get_uploaded ()
- 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.
- public unowned YouTubeContent look_up_content (string type)
- 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.
- 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.
Inherited Members:
All known members inherited from class GData.Entry
All known members inherited from class GData.Parsable
All known members inherited from class GLib.Object
All known members inherited from interface GData.Commentable