NAME
Video::PlaybackMachine::AVFile - An MPEG, PNG, OGG, or other file which can be played
SYNOPSIS
use Video::PlaybackMachine::AVFile;
my $avfile = Video::PlaybackMachine::AVFile->new($file, $duration);
my $filename = $avfile->get_file();
my $length = $avfile->get_length();
DESCRIPTION
Simple object representing a playable file.
METHODS
CLASS METHODS
new()
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.
OBJECT METHODS
get_length()
Returns the duration of the AV file in seconds.
get_file()
Returns the filename.