6 SDL::SMPEG - a SDL perl extension
10 $video = new SDL::SMPEG ( -name => 'pr0n.mpg' );
14 C<SDL::SMPEG> adds support for MPEG video to your
15 SDL Perl application. SMPEGs are objects bound to
16 surfaces, whose playback is controled through the
26 C<SDL::SMPEG::error()> returns any error messages associated with playback
30 C<SDL::SMPEG::audio(bool)> enables or disables audio playback, (on by default)
34 C<SDL::SMPEG::video(bool)> enables or disable video playback, (on by default)
38 C<SDL::SMPEG::loop(bool)> enables or disable playback looping (off by default)
42 C<SDL::SMPEG::volume(int)> set the volume as per the mixer volume
46 C<SDL::SMPEG:display(surface)> binds the clip to a display surface
50 C<SDL::SMPEG::scale([x,y]|[surface]|int)> scales the clip by either x,y
51 factors, scales to the image dimensions, or a single scalar.
55 C<SDL::SMPEG::play()> plays the video clip, call C<SDL::SMPEG::display()> before playing
59 C<SDL::SMPEG::pause()> pauses video playback
63 C<SDL::SMPEG::stop()> stops video playback
67 C<SDL::SMPEG::rewind()> resets the clip to the beginning
71 C<SDL::SMPEG::seek(offset)> seeks to a particular byte offset
75 C<SDL::SMPEG::skip(time)> skips to a particular time
79 C<SDL::SMPEG::region(rect)> takes a SDL::Rect and defines the display area
83 C<SDL::SMPEG::frame(int)> renders a specific frame to the screen
87 C<SDL::SMPEG::info()> returns a new C<SDL::MPEG> object reflecting the current status
91 C<SDL::SMPEG::status()> returns either SMPEG_PLAYING or SMPEG_STOPPED or SMPEG_ERROR
101 perl(1) SDL::Surface(3) SDL::MPEG(3)