diff options
Diffstat (limited to 'src/samples/showvideo.py')
-rwxr-xr-x | src/samples/showvideo.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/samples/showvideo.py b/src/samples/showvideo.py new file mode 100755 index 0000000..571034b --- /dev/null +++ b/src/samples/showvideo.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +from libavg import avg, app +import sys + +class VideoPlayer(app.MainDiv): + def init(self): + self.videoNode = avg.VideoNode( + href=sys.argv[1], + parent=self) + self.videoNode.play() + +app.App().run(VideoPlayer(), app_resolution='1920x1080', app_window_size='720x450') |