NAME

WebService::GData::YouTube::Feed::Video - a Video YouTube contents(read/write) for data API v2.

VERSION

0.01

SYNOPSIS

	use WebService::GData::YouTube;

    #create an object that only has read access
   	my $yt = new WebService::GData::YouTube();

	#get a feed response from YouTube;
	my $videos  = $yt->get_top_rated;
	#more specific:
	my $videos  = $yt->get_top_rated('JP','Comedy');

	foreach my $video (@$videos) {
		$video->video_id;
		$video->title;
		$video->content;
	}

	#connect to a YouTube account
	my $auth = new WebService::GData::ClientLogin(
		email=>'...'
		password=>'...',
		key		=>'...'
	);

	#give write access with a $auth object that you created
   	my $yt = new WebService::GData::YouTube($auth);

	my $playlists  = $yt->get_user_videos();#returns videos from the loggedin user even if private

	#update the playlist by adding the playlist title as a keyword
	foreach my $playlist (@$playlists) {

		if($video->video_id eq $myid) {
			$video->delete($myid);
		}else {
			if($video->is_listed_allowed){
				$playlist->kewords($playlist->title.','.$playlist->keywords);
				$playlist->save();
			}
		}
	}
	 

DESCRIPTION

inherits from WebService::GData::Feed::Entry;

This package represents a Youtube Video. If you are logged in you can edit existing video metadata,create new metadata, upload videos.

Most of the time you will not instantiate this class directly but use some of the helpers in the WebService::GData::YouTube class.

CONSTRUCTOR

new

    inherited from WebService::GData::Feed::Entry. Accepts the same parameters:

    - a video entry feed in json format

    - an optional authorization object (ClientLogin only implemented for now).

    If authorization object is set, it will allow you to access private contents and insert/edit/delete/upload videos.

GET METHODS

view_count =head2 favorite_count =head2 media_player =head2 aspect_ratio =head2 duration =head2 content =head2 comments =head2 thumbnails =head2 uploaded =head2 etag =head2 appcontrol_state

SET/GET METHODS

video_id =head2 access_controll =head2 category =head2 description =head2 keywords =head2 is_listing_allowed =head2 is_comment_allowed =head2 is_comment_vote_allowed =head2 is_video_response_allowed =head2 is_rating_allowed =head2 is_embedding_allowed =head2 is_syndication_allowed =head2 private =head2 delete =head2 save =head2 filename =head2 upload_mode

CONFIGURATION AND ENVIRONMENT

none

DEPENDENCIES

JSON

LWP

INCOMPATIBILITIES

none

BUGS AND LIMITATIONS

If you do me the favor to _use_ this module and find a bug, please email me i will try to do my best to fix it (patches welcome)!

AUTHOR

shiriru <shiriru0111[arobas]hotmail.com>

LICENSE AND COPYRIGHT

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 442:

You forgot a '=back' before '=head1'