1SDL::SMPEG(3) User Contributed Perl Documentation SDL::SMPEG(3)
2
3
4
6 SDL::SMPEG - a SDL perl extension
7
9 TODO
10
12 $video = SDL::SMPEG->new( -name => 'pr0n.mpg' );
13
15 "SDL::SMPEG" adds support for MPEG video to your SDL Perl application.
16 SMPEGs are objects bound to surfaces, whose playback is controlled
17 through the object's interface.
18
19 METHODS
20 • "SDL::SMPEG::error()" returns any error messages associated with
21 playback
22
23 • "SDL::SMPEG::audio(bool)" enables or disables audio playback, (on
24 by default)
25
26 • "SDL::SMPEG::video(bool)" enables or disable video playback, (on by
27 default)
28
29 • "SDL::SMPEG::loop(bool)" enables or disable playback looping (off
30 by default)
31
32 • "SDL::SMPEG::volume(int)" set the volume as per the mixer volume
33
34 • "SDL::SMPEG:display(surface)" binds the clip to a display surface
35
36 • "SDL::SMPEG::scale([x,y]|[surface]|int)" scales the clip by either
37 x,y factors, scales to the image dimensions, or a single scalar.
38
39 • "SDL::SMPEG::play()" plays the video clip, call
40 "SDL::SMPEG::display()" before playing
41
42 • "SDL::SMPEG::pause()" pauses video playback
43
44 • "SDL::SMPEG::stop()" stops video playback
45
46 • "SDL::SMPEG::rewind()" resets the clip to the beginning
47
48 • "SDL::SMPEG::seek(offset)" seeks to a particular byte offset
49
50 • "SDL::SMPEG::skip(time)" skips to a particular time
51
52 • "SDL::SMPEG::region(rect)" takes a SDL::Rect and defines the
53 display area
54
55 • "SDL::SMPEG::frame(int)" renders a specific frame to the screen
56
57 • "SDL::SMPEG::info()" returns a new "SDL::MPEG" object reflecting
58 the current status
59
60 • "SDL::SMPEG::status()" returns either SMPEG_PLAYING or
61 SMPEG_STOPPED or SMPEG_ERROR
62
64 David J. Goehrig
65
67 perl(1) SDL::Surface(3) SDL::MPEG(3)
68
69
70
71perl v5.32.1 2021-01-27 SDL::SMPEG(3)