=pod =head1 NAME SDL::SMPEG - a SDL perl extension =head1 SYNOPSIS $video = new SDL::SMPEG ( -name => 'pr0n.mpg' ); =head1 DESCRIPTION C adds support for MPEG video to your SDL Perl application. SMPEGs are objects bound to surfaces, whose playback is controled through the object's interface. =head2 METHODS =over 4 =item * C returns any error messages associated with playback =item * C enables or disables audio playback, (on by default) =item * C enables or disable video playback, (on by default) =item * C enables or disable playback looping (off by default) =item * C set the volume as per the mixer volume =item * C binds the clip to a display surface =item * C scales the clip by either x,y factors, scales to the image dimensions, or a single scalar. =item * C plays the video clip, call C before playing =item * C pauses video playback =item * C stops video playback =item * C resets the clip to the beginning =item * C seeks to a particular byte offset =item * C skips to a particular time =item * C takes a SDL::Rect and defines the display area =item * C renders a specific frame to the screen =item * C returns a new C object reflecting the current status =item * C returns either SMPEG_PLAYING or SMPEG_STOPPED or SMPEG_ERROR =back =head1 AUTHOR David J. Goehrig =head1 SEE ALSO perl(1) SDL::Surface(3) SDL::MPEG(3) =cut