/usr/share/pymt-examples/apps/videoplayer/test.py is in python-pymt 0.5.1-0ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | from pymt import *
class MTVideoBase(MTScatterWidget):
def __init__(self, filename, **kwargs):
super(MTVideoBase, self).__init__(**kwargs)
self.video = Video(filename=filename)
def draw(self):
self.size = self.video.size
self.video.draw()
if __name__ == '__main__':
m = MTWidget()
v = MTVideo(filename='super-fly.avi')
v.player.play()
v.player.volume = 0.1
m.add_widget(v)
v = MTVideo(filename='http://samples.mplayerhq.hu/MPEG-4/MP4_with_ttxtSUB/1Video_2Audio_2SUBs(timed%20text%20streams).mp4')
v.player.play()
m.add_widget(v)
runTouchApp(m)
|