YouTubeQuery
Object Hierarchy:
Description:
All the fields in the YouTubeQuery structure are private and should never be accessed
directly.
Namespace: GData
Package: libgdata
Content:
Properties:
-
public YouTubeAge age { set; get; }
Restricts the search to videos uploaded within the specified time period. To retrieve videos
irrespective of their age, set the property to ALL_TIME.
-
public YouTubeFormat format { set; get; }
Specifies that videos must be available in a particular video format. Use
UNKNOWN to retrieve videos irrespective of their format availability.
-
public bool has_location { set; get; }
Whether to restrict search results to videos with specific coordinates associated with them. If used
with a given latitude and
longitude, only videos with specific coordinates (not those with
merely a descriptive address) will be returned. If used without a latitude and longitude set, only videos with specific coordinates
(regardless of those coordinates) will be returned.
-
public string language { set; get; }
Restricts the search to videos that have a title, description or keywords in a specified language. The
language code should be a two-letter ISO 639-1 code; or you can use zh-Hans for simplified Chinese and zh-Hant for
traditional Chinese.
-
public double latitude { set; get; }
The latitude of a particular location of which videos should be found. This should be used in
conjunction with longitude; if either property is outside the valid
range, neither will be used. Valid latitudes are between -90 and 900 degrees; any values of this property
outside that range will unset the property in the query URI.
-
public double location_radius { set; get; }
The radius, in metres, of a circle from within which videos should be returned. The circle is centred on
the latitude and longitude given in latitude and
longitude.
-
public double longitude { set; get; }
The longitude of a particular location of which videos should be found. This should be used in
conjunction with latitude; if either property is outside the valid
range, neither will be used. Valid longitudes are between -180 and 180 degrees; any values of this property
outside that range will unset the property in the query URI.
-
public string order_by { set; get; }
Specifies the order of entries in a feed. Supported values are relevance, published,
viewCount and rating.
-
public string restriction { set; get; }
The IP address that should be used to filter videos playable only in specific countries. This should be
the IP address of the client, if different to the IP address in use by the library. Alternatively, it can be an ISO 3166 two-letter
country code.
-
public YouTubeSafeSearch safe_search { set; get; }
Whether the search results should include restricted content as well as standard content.
-
public YouTubeSortOrder sort_order { set; get; }
Specifies the direction of sorting. To use the default sort order, set the property to
NONE.
-
public YouTubeUploader uploader { set; get; }
Restricts the search to videos from the specified type of uploader. Currently, this can only be used to
restrict searches to videos from YouTube partners.
Creation methods:
Methods: