
SDL::SMPEG - a SDL perl extension

TODO

$video = SDL::SMPEG->new( -name => 'pr0n.mpg' );

SDL::SMPEG adds support for MPEG video to your SDL Perl application. SMPEGs are objects bound to surfaces, whose playback is controlled through the object's interface.
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, call SDL::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 new SDL::MPEG object reflecting the current statusSDL::SMPEG::status() returns either SMPEG_PLAYING or SMPEG_STOPPED or SMPEG_ERROR
David J. Goehrig

perl(1) SDL::Surface(3) SDL::MPEG(3)