1SDL::Video(3)         User Contributed Perl Documentation        SDL::Video(3)
2
3
4

NAME

6       SDL::Video - a SDL perl extension
7

SYNOPSIS

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

DESCRIPTION

12       "SDL::Video" adds support for MPEG video to your SDL Perl application.
13       Videos are objects bound to surfaces, whose playback is controled
14       through the object's interface.
15
16       METHODS
17
18       ·   "SDL::Video::error()" returns any error messages associated with
19           playback
20
21       ·   "SDL::Video::audio(bool)" enables or disables audio playback, (on
22           by default)
23
24       ·   "SDL::Video::video(bool)" enables or disable video playback, (on by
25           default)
26
27       ·   "SDL::Video::loop(bool)" enables or disable playback looping (off
28           by default)
29
30       ·   "SDL::Video::volume(int)" set the volume as per the mixer volume
31
32       ·   "SDL::Video:display(surface)" binds the clip to a display surface
33
34       ·   "SDL::Video::scale([x,y]⎪[surface]⎪int)" scales the clip by either
35           x,y factors, scales to the image dimensions, or a single scalar.
36
37       ·   "SDL::Video::play()" plays the video clip, call "SDL::Video::dis‐
38           play()" before playing
39
40       ·   "SDL::Video::pause()" pauses video playback
41
42       ·   "SDL::Video::stop()" stops video playback
43
44       ·   "SDL::Video::rewind()" resets the clip to the beginning
45
46       ·   "SDL::Video::seek(offset)" seeks to a particular byte offset
47
48       ·   "SDL::Video::skip(time)" skips to a particular time
49
50       ·   "SDL::Video::region(rect)" takes a SDL::Rect and defines the dis‐
51           play area
52
53       ·   "SDL::Video::frame(int)" renders a specific frame to the screen
54
55       ·   "SDL::Video::info()" returns a new "SDL::MPEG" object reflecting
56           the current status
57
58       ·   "SDL::Video::status()" returns either SMPEG_PLAYING or
59           SMPEG_STOPPED or SMPEG_ERROR
60

AUTHOR

62       David J. Goehrig
63

SEE ALSO

65       perl(1) SDL::Surface(3) SDL::MPEG(3)
66
67
68
69perl v5.8.8                       2006-08-28                     SDL::Video(3)
Impressum