/usr/share/kivy-examples/widgets/videoplayer.py is in python-kivy-examples 1.9.0-3build1.
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 | 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
#check what formats are supported for your targetted devices
#for example try h264 video and acc audo for android using an mp4
#container
class VideoPlayerApp(App):
def build(self):
if len(argv) > 1:
filename = argv[1]
else:
curdir = dirname(__file__)
filename = join(curdir, 'softboy.mpg')
return VideoPlayer(source=filename, state='play')
if __name__ == '__main__':
VideoPlayerApp().run()
|