Replace old video with CC0 licensed video

https://videos.pexels.com/videos/time-lapse-video-of-tall-buildings-894
This commit is contained in:
Peter Badida 2017-01-15 22:10:18 +01:00
parent 67b9bebd30
commit b9e9804a5a
15 changed files with 12 additions and 12 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 503 KiB

View File

@ -3,7 +3,7 @@
BoxLayout:
orientation: "vertical"
Image:
source: "../../widgets/softboy.png"
source: "../../widgets/cityCC0.png"
Video:
source: "../../widgets/softboy.mpg"
source: "../../widgets/cityCC0.mpg"
state: "play"

View File

@ -6,7 +6,7 @@ FloatLayout:
size: 100, 100
pos: 100, 100
Image:
source: "../../widgets/softboy.png"
source: "../../widgets/cityCC0.png"
Scatter:
size_hint: None, None
size: 100, 100

View File

@ -1,7 +1,7 @@
Widget:
Video:
id: myvideo
source: '../widgets/softboy.mpg'
source: '../widgets/cityCC0.mpg'
play: mybutton.state == 'down'
canvas:
Color:

View File

@ -6,7 +6,7 @@ BoxLayout:
Video:
id: myvideo
source: '../widgets/softboy.avi'
source: '../widgets/cityCC0.mpg'
allow_stretch: True
on_eos: self.play = True; print('woot we are looping!')

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 690 KiB

View File

@ -8,7 +8,7 @@ And if i really want to write my code: &bl; Hello world &br;
And video widget
----------------
.. video:: softboy.mpg
.. video:: cityCC0.mpg
Inline Markup

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 249 KiB

View File

@ -212,7 +212,7 @@ Builder.load_string('''
id: tab_3_content
pos:self.parent.pos
size: self.parent.size
source: 'softboy.mpg'
source: 'cityCC0.mpg'
TabbedPanelHeader:
id: def_tab
content:default_content.__self__

View File

@ -18,7 +18,7 @@ class VideoPlayerApp(App):
filename = argv[1]
else:
curdir = dirname(__file__)
filename = join(curdir, 'softboy.mpg')
filename = join(curdir, 'cityCC0.mpg')
return VideoPlayer(source=filename, state='play')

View File

@ -13,7 +13,7 @@ class AnimationTestCase(unittest.TestCase):
from os.path import join, dirname, abspath
here = dirname(__file__)
source = abspath(join(
here, "..", "..", "examples", "widgets", "softboy.mpg"))
here, "..", "..", "examples", "widgets", "cityCC0.mpg"))
video = Video(source=source, play=True)
Clock.schedule_once(lambda x: stopTouchApp(), 1)

View File

@ -21,7 +21,7 @@ will automatically load the associated annotation file if it exists.
An annotation file is JSON-based, providing a list of label dictionary items.
The key and value must match one of the :class:`VideoPlayerAnnotation` items.
For example, here is a short version of a jsa file that you can find in
`examples/widgets/softboy.jsa`::
`examples/widgets/cityCC0.jsa`::
[
@ -32,14 +32,14 @@ For example, here is a short version of a jsa file that you can find in
"text": "You can change the background color"}
]
For our softboy.avi example, the result will be:
For our cityCC0.mpg example, the result will be:
.. image:: images/videoplayer-annotation.jpg
:align: center
If you want to experiment with annotation files, test with::
python -m kivy.uix.videoplayer examples/widgets/softboy.avi
python -m kivy.uix.videoplayer examples/widgets/cityCC0.mpg
Fullscreen
----------