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       ·   "SDL::Video::error()" returns any error messages associated with
18           playback
19
20       ·   "SDL::Video::audio(bool)" enables or disables audio playback, (on
21           by default)
22
23       ·   "SDL::Video::video(bool)" enables or disable video playback, (on by
24           default)
25
26       ·   "SDL::Video::loop(bool)" enables or disable playback looping (off
27           by default)
28
29       ·   "SDL::Video::volume(int)" set the volume as per the mixer volume
30
31       ·   "SDL::Video:display(surface)" binds the clip to a display surface
32
33       ·   "SDL::Video::scale([x,y]|[surface]|int)" scales the clip by either
34           x,y factors, scales to the image dimensions, or a single scalar.
35
36       ·   "SDL::Video::play()" plays the video clip, call
37           "SDL::Video::display()" before playing
38
39       ·   "SDL::Video::pause()" pauses video playback
40
41       ·   "SDL::Video::stop()" stops video playback
42
43       ·   "SDL::Video::rewind()" resets the clip to the beginning
44
45       ·   "SDL::Video::seek(offset)" seeks to a particular byte offset
46
47       ·   "SDL::Video::skip(time)" skips to a particular time
48
49       ·   "SDL::Video::region(rect)" takes a SDL::Rect and defines the
50           display area
51
52       ·   "SDL::Video::frame(int)" renders a specific frame to the screen
53
54       ·   "SDL::Video::info()" returns a new "SDL::MPEG" object reflecting
55           the current status
56
57       ·   "SDL::Video::status()" returns either SMPEG_PLAYING or
58           SMPEG_STOPPED or SMPEG_ERROR
59

AUTHOR

61       David J. Goehrig
62

SEE ALSO

64       perl(1) SDL::Surface(3) SDL::MPEG(3)
65
66
67
68perl v5.12.0                      2010-05-06                     SDL::Video(3)
Impressum