/[Frey]/trunk/lib/Frey/File/FLV.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /trunk/lib/Frey/File/FLV.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 822 - (hide annotations)
Fri Dec 12 19:34:04 2008 UTC (15 years, 6 months ago) by dpavlin
File size: 370 byte(s)
use FLV::Info to provide flv_info with role Frey::File::FLV
1 dpavlin 822 package Frey::File::FLV;
2     use Moose::Role;
3    
4     use FLV::Info;
5    
6     #requires 'path';
7    
8     has _flv => (
9     is => 'rw',
10     isa => 'FLV::Info',
11     requred => 1,
12     lazy => 1,
13     default => sub {
14     my ($self) = @_;
15     my $reader = FLV::Info->new();
16     warn "# parse ", $self->path;
17     $reader->parse( $self->path );
18     $reader;
19     },
20     );
21    
22     sub flv_info {
23     my ($self) = @_;
24     $self->_flv->get_info;
25     }
26    
27     1;

  ViewVC Help
Powered by ViewVC 1.1.26