mirror of https://github.com/kivy/kivy.git
Replace old video with CC0 licensed video
https://videos.pexels.com/videos/time-lapse-video-of-tall-buildings-894
This commit is contained in:
parent
67b9bebd30
commit
b9e9804a5a
Binary file not shown.
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 503 KiB |
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
Widget:
|
||||
Video:
|
||||
id: myvideo
|
||||
source: '../widgets/softboy.mpg'
|
||||
source: '../widgets/cityCC0.mpg'
|
||||
play: mybutton.state == 'down'
|
||||
canvas:
|
||||
Color:
|
||||
|
|
|
@ -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 |
|
@ -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 |
|
@ -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__
|
||||
|
|
|
@ -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')
|
||||
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
----------
|
||||
|
|
Loading…
Reference in New Issue