diff options
author | Dimitri John Ledkov <xnox@ubuntu.com> | 2014-06-24 20:05:13 +0100 |
---|---|---|
committer | Dimitri John Ledkov <xnox@ubuntu.com> | 2014-06-24 20:05:13 +0100 |
commit | dd22bd15f6ed3e5eb5c77ab427029be50fe20148 (patch) | |
tree | d9491ee40d80688b7f5b1f20504f022686827a57 /src/samples/showvideo.py |
libavg (1.8.1-1) unstable; urgency=medium
* New upstream release (Closes: #739664)
* Mark libdc1394-22-dev as linux-any build-dependency.
* Add libvdpau-dev build-dependency.
* Add libavresample-dev build-dependency.
# imported from the archive
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') |