summaryrefslogtreecommitdiff
path: root/src/samples/showvideo.py
blob: 571034b749c266012605907cecd3abe3114f2f79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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')