[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] movie playing
- To: pygame-users@xxxxxxxx
- Subject: [pygame] movie playing
- From: İzzet Aykut KOÇAK <izzetaykutkocak@xxxxxxxxx>
- Date: Mon, 24 Apr 2006 14:54:11 +0300
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Mon, 24 Apr 2006 07:54:27 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:content-type:content-transfer-encoding; b=UOiUcjUrq3dWLqywdzEu4PzRmJ2nJY6mugtQi86IWqaP/EdTD2jD7CQxfcctgm6xlLVzPYn2uULs2MME/8fEM5UUB18UJo89yYwjtVj19Ua3tL8HukMfutrT3xFdWCUAluTk8cOC4+hhcVt3qqXG1DAhEHb383FqmW399hc3HUQ=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
- User-agent: Debian Thunderbird 1.0 (X11/20050116)
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