Initial commit

This commit is contained in:
Rich
2023-12-06 14:24:46 +00:00
commit edf0f5e06a
53 changed files with 3665 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
'''
This is an example of the built in GUI for videos
'''
import pygame
from pyvidplayer2 import VideoPlayer, Video
win = pygame.display.set_mode((1124, 868))
pygame.display.set_caption("video player demo")
vid = VideoPlayer(Video(r"resources\ocean.mkv"), (50, 50, 1024, 768), preview_thumbnails=11)
while True:
events = pygame.event.get()
for event in events:
if event.type == pygame.QUIT:
vid.close()
pygame.quit()
exit()
pygame.time.wait(16)
win.fill("white")
vid.update(events)
vid.draw(win)
pygame.display.update()