set_category


Description:

public void set_category (MediaCategory category)

Sets the category property to the new category, category, and increments its reference count.

category must not be null. For more information, see the <ulink type="http" url="https://developers.google.com/youtube/v3/docs/videos#snippet.categoryId">online documentation</ulink>.

Parameters:

this

a YouTubeVideo

category

a new MediaCategory