<html> <title>pygame.movie</title> <body bgcolor=#aaeebb text=#000000 link=#331111 vlink=#331111> <table cellspacing=3 width=100%><tr><td bgcolor=#00000> <table width=100%><tr><td bgcolor=c2fc20 align=center> <a href=http://www.pygame.org> <img src=../pygame_tiny.gif border=0 width=200 height=60></a><br> <b>pygame documentation</b> </td><td bgcolor=6aee28 align=center valign=top width=100%> || <a href=http://www.pygame.org>Home</a> || <a href=../index.html>Help Contents</a> || <br> <br> || <a href=pygame.html>pygame</a> || <a href=pygame_cdrom.html>cdrom</a> || <a href=pygame_constants.html>constants</a> || <a href=pygame_display.html>display</a> || <a href=pygame_draw.html>draw</a> || <a href=pygame_event.html>event</a> ||<br> || <a href=pygame_font.html>font</a> || <a href=pygame_image.html>image</a> || <a href=pygame_joystick.html>joystick</a> || <a href=pygame_key.html>key</a> || <a href=pygame_mixer.html>mixer</a> || <a href=pygame_mixer_music.html>mixer_music</a> ||<br> || <a href=pygame_mouse.html>mouse</a> || <a href=pygame_movie.html>movie</a> || <a href=pygame_sndarray.html>sndarray</a> || <a href=pygame_surfarray.html>surfarray</a> || <a href=pygame_time.html>time</a> || <a href=pygame_transform.html>transform</a> ||<br> <br>|| <a href=CD.html>CD</a> || <a href=Channel.html>Channel</a> || <a href=Clock.html>Clock</a> || <a href=Font.html>Font</a> || <a href=Joystick.html>Joystick</a> || <a href=Movie.html>Movie</a> ||<br> || <a href=Rect.html>Rect</a> || <a href=Sound.html>Sound</a> || <a href=Surface.html>Surface</a> ||<br> <br>|| <a href=pygame_cursors.html>cursors</a> || <a href=pygame_sprite.html>sprite</a> ||<br> </td></tr></table></td></tr></table> <br> <h2 align=center>pygame.movie</h2> The movie module is an optional pygame module that allows for decoding and playback of MPEG movie files. The module only contains a single function, <a href=#Movie>Movie()</a> which creates a new Movie object. <br> <br> Movies are played back in background threads, so there is very little management needed on the user end. Just load the Movie, set the destination, and <a href=Movie.html#play>Movie.play()</a> <br> <br> Movies will only playback audio if the pygame.mixer module is not initialized. It is easy to temporarily call <a href=pygame_mixer.html#quit>pygame.mixer.quit()</a> to disable audio, then create and play your movie. Finally calling <a href=pygame_mixer.html#init>pygame.mixer.init()</a> again when finished with the Movie. <hr> <table> <tr><td><a href=#Movie>Movie</a></td><td> - load a new MPEG stream</td></tr> </table> <hr> <a name=Movie><font size=+2><b>Movie </b></font><br><font size=+1><tt> pygame.movie.Movie(file) -> Movie </tt></font><ul> Loads a new movie stream from a MPEG file. The file argument is either a filename, or any python file-like object </ul><br> <br> <hr> </body></html>