NAME
SDL::SMPEG - a SDL perl extension
CATEGORY
TODO
SYNOPSIS
$video = SDL::SMPEG->new( -name => 'pr0n.mpg' );
DESCRIPTION
SDL::SMPEG 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.
METHODS
SDL::SMPEG::error()returns any error messages associated with playbackSDL::SMPEG::audio(bool)enables or disables audio playback, (on by default)SDL::SMPEG::video(bool)enables or disable video playback, (on by default)SDL::SMPEG::loop(bool)enables or disable playback looping (off by default)SDL::SMPEG::volume(int)set the volume as per the mixer volumeSDL::SMPEG:display(surface)binds the clip to a display surfaceSDL::SMPEG::scale([x,y]|[surface]|int)scales the clip by either x,y factors, scales to the image dimensions, or a single scalar.SDL::SMPEG::play()plays the video clip, callSDL::SMPEG::display()before playingSDL::SMPEG::pause()pauses video playbackSDL::SMPEG::stop()stops video playbackSDL::SMPEG::rewind()resets the clip to the beginningSDL::SMPEG::seek(offset)seeks to a particular byte offsetSDL::SMPEG::skip(time)skips to a particular timeSDL::SMPEG::region(rect)takes a SDL::Rect and defines the display areaSDL::SMPEG::frame(int)renders a specific frame to the screenSDL::SMPEG::info()returns a newSDL::MPEGobject reflecting the current statusSDL::SMPEG::status()returns either SMPEG_PLAYING or SMPEG_STOPPED or SMPEG_ERROR
AUTHOR
David J. Goehrig
SEE ALSO
perl(1) SDL::Surface(3) SDL::MPEG(3)