/usr/share/kivi-examples/widgets/videoplayer.py is in python-kivy-examples 1.7.2-1.
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 | import kivy
kivy.require('1.2.0')
from sys import argv
from os.path import dirname, join
from kivy.app import App
from kivy.uix.videoplayer import VideoPlayer
class VideoPlayerApp(App):
def build(self):
if len(argv) > 1:
filename = argv[1]
else:
curdir = dirname(__file__)
filename = join(curdir, 'softboy.avi')
return VideoPlayer(source=filename, state='play')
if __name__ == '__main__':
VideoPlayerApp().run()
|