NAME
WebService::Shutterstock::SearchResult::Video - Class representing a single video search result from the Shutterstock API
VERSION
version 0.006
SYNOPSIS
my $search = $shutterstock->search_video(searchterm => 'butterfly');
my $results = $search->results;
foreach my $result(@$results){
printf "%d: %s\n", $result->video_id, $result->description;
print "Tags: ";
print join ", ", @{ $result->video->keywords };
print "\n";
}
DESCRIPTION
An object of this class provides information about a single search result. When executing a search, an array of these objects is returned by the "results" in WebService::Shutterstock::SearchResults method.
ATTRIBUTES
video_id
The video ID for this search result.
thumb_video
A HashRef containing a webm and mp4 URL for a "thumbnail" size of this video.
preview_video
A HashRef containing a webm and mp4 URL for a "preview" size of this video.
preview_image_url
An URL for a watermarked preview of this image.
web_url
The http://footage.shutterstock.com link for this image.
description
An abbreviated description of this search result.
submitter_id
The ID for the submitter of this video.
duration
Length of this video in seconds.
aspect_ratio_common
Aspect ratio as a string (i.e. "16:9").
aspect
Aspect ratio as a float (i.e. 1.7778).
METHODS
video
Returns a WebService::Shutterstock::Video object for this search result.
AUTHOR
Brian Phillips <bphillips@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Brian Phillips and Shutterstock, Inc. (http://shutterstock.com).
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.