Video::PlaybackMachine::AVFile - An MPEG, PNG, OGG, or other file which can be played
use Video::PlaybackMachine::AVFile; my $avfile = Video::PlaybackMachine::AVFile->new($file, $duration); my $filename = $avfile->get_file(); my $length = $avfile->get_length();
Simple object representing a playable file.
new({file => $file, length => $length_secs });
Constructor. The $file parameter should be a filename. The $length parameter should be the duration of the file in seconds.
$file
$length
Returns the duration of the AV file in seconds.
Returns the filename.
To install Video::PlaybackMachine, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Video::PlaybackMachine
CPAN shell
perl -MCPAN -e shell install Video::PlaybackMachine
For more information on module installation, please visit the detailed CPAN module installation guide.