GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  PODS::SDL::SMPEG (3)

.ds Aq ’

NAME

SDL::SMPEG - a SDL perl extension

CONTENTS

CATEGORY

TODO

SYNOPSIS



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



DESCRIPTION

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.

    METHODS

o SDL::SMPEG::error() returns any error messages associated with playback
o SDL::SMPEG::audio(bool) enables or disables audio playback, (on by default)
o SDL::SMPEG::video(bool) enables or disable video playback, (on by default)
o SDL::SMPEG::loop(bool) enables or disable playback looping (off by default)
o SDL::SMPEG::volume(int) set the volume as per the mixer volume
o SDL::SMPEG:display(surface) binds the clip to a display surface
o SDL::SMPEG::scale([x,y]|[surface]|int) scales the clip by either x,y factors, scales to the image dimensions, or a single scalar.
o SDL::SMPEG::play() plays the video clip, call SDL::SMPEG::display() before playing
o SDL::SMPEG::pause() pauses video playback
o SDL::SMPEG::stop() stops video playback
o SDL::SMPEG::rewind() resets the clip to the beginning
o SDL::SMPEG::seek(offset) seeks to a particular byte offset
o SDL::SMPEG::skip(time) skips to a particular time
o SDL::SMPEG::region(rect) takes a SDL::Rect and defines the display area
o SDL::SMPEG::frame(int) renders a specific frame to the screen
o SDL::SMPEG::info() returns a new SDL::MPEG object reflecting the current status
o SDL::SMPEG::status() returns either SMPEG_PLAYING or SMPEG_STOPPED or SMPEG_ERROR

AUTHOR

David J. Goehrig

SEE ALSO

perl(1) SDL::Surface(3) SDL::MPEG(3)
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 PODS::SDL::SMPEG (3) 2016-04-05

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.