[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] movie playing



Hi,

I am trying to play short movies with pygame but below codes hangs and can not be terminated with ctrl-c and has to be killed. Any suggestions?

import pygame,time

if __name__=='__main__':
   ret=pygame.init()
   print ret
   d=pygame.display.set_mode((640,480))
   m=pygame.movie.Movie('test.mpg')
   m.set_display(d)
   m.play()
   while m.get_busy():
       print time.time()
       time.sleep(1)
   pygame.quit()



Aykut KOCAK