質問編集履歴
2
ソースコード等追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -45,3 +45,205 @@
|
|
45
45
|
また、依存モジュールの再インストール等も行ったほうがよいでしょうか。
|
46
46
|
|
47
47
|
合わせてご回答いただけると嬉しいです。
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
---------追記(コメント返信)------------
|
54
|
+
|
55
|
+
実行環境↓
|
56
|
+
|
57
|
+
```ここに言語を入力
|
58
|
+
|
59
|
+
$ pip3 list
|
60
|
+
|
61
|
+
Package Version
|
62
|
+
|
63
|
+
----------- ----------
|
64
|
+
|
65
|
+
certifi 2020.4.5.1
|
66
|
+
|
67
|
+
chardet 3.0.4
|
68
|
+
|
69
|
+
Cython 0.29.14
|
70
|
+
|
71
|
+
docutils 0.16
|
72
|
+
|
73
|
+
idna 2.9
|
74
|
+
|
75
|
+
Kivy 2.0.0rc1
|
76
|
+
|
77
|
+
Kivy-Garden 0.1.4
|
78
|
+
|
79
|
+
Pillow 7.1.1
|
80
|
+
|
81
|
+
pip 20.0.2
|
82
|
+
|
83
|
+
pygame 1.9.6
|
84
|
+
|
85
|
+
Pygments 2.6.1
|
86
|
+
|
87
|
+
requests 2.23.0
|
88
|
+
|
89
|
+
setuptools 46.1.3
|
90
|
+
|
91
|
+
urllib3 1.25.8
|
92
|
+
|
93
|
+
```
|
94
|
+
|
95
|
+
該当クラス↓
|
96
|
+
|
97
|
+
```ここに言語を入力
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
from kivy.uix.video import Video
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
class InCallingScreen(Screen, Video):
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
def __init__(self, **kwargs):
|
110
|
+
|
111
|
+
super().__init__(**kwargs)
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
boxlayout = self.children[0]
|
116
|
+
|
117
|
+
grid = boxlayout.children[1]
|
118
|
+
|
119
|
+
video = Video(source='./movie/sample.mp4', options={'eos': 'loop'})
|
120
|
+
|
121
|
+
grid.add_widget(video)
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
def on_enter(self):
|
126
|
+
|
127
|
+
Clock.schedule_once(self.change_screen)
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
def change_screen(self, dt):
|
132
|
+
|
133
|
+
boxlayout = self.children[0]
|
134
|
+
|
135
|
+
grid = boxlayout.children[1]
|
136
|
+
|
137
|
+
video = grid.children[0]
|
138
|
+
|
139
|
+
video.state = 'play'
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
def cancellClicked(self): # ボタンをクリック時
|
144
|
+
|
145
|
+
boxlayout = self.children[0]
|
146
|
+
|
147
|
+
grid = boxlayout.children[1]
|
148
|
+
|
149
|
+
video = grid.children[0]
|
150
|
+
|
151
|
+
video.state = 'stop'
|
152
|
+
|
153
|
+
```
|
154
|
+
|
155
|
+
ログ↓
|
156
|
+
|
157
|
+
```ここに言語を入力
|
158
|
+
|
159
|
+
$ python3 screen.py
|
160
|
+
|
161
|
+
[INFO ] [Logger ] Record log in /〇〇/〇〇/.kivy/logs/kivy_20-04-13_9.txt
|
162
|
+
|
163
|
+
[INFO ] [Kivy ] v2.0.0rc1, git-Unknown, 20200410
|
164
|
+
|
165
|
+
[INFO ] [Kivy ] Installed at "/〇〇/〇〇/.local/lib/python3.7/site-packages/kivy/__init__.py"
|
166
|
+
|
167
|
+
[INFO ] [Python ] v3.7.7 (default, Apr 9 2020, 07:21:57)
|
168
|
+
|
169
|
+
[GCC 8.3.0]
|
170
|
+
|
171
|
+
[INFO ] [Python ] Interpreter at "/usr/local/bin/python3"
|
172
|
+
|
173
|
+
[INFO ] [Factory ] 184 symbols loaded
|
174
|
+
|
175
|
+
[INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_pil (img_ffpyplayer, img_gif ignored)
|
176
|
+
|
177
|
+
[INFO ] [VideoGstplayer] Using Gstreamer 1.14.4.0
|
178
|
+
|
179
|
+
[INFO ] [Video ] Provider: gstplayer
|
180
|
+
|
181
|
+
[INFO ] [Text ] Provider: sdl2
|
182
|
+
|
183
|
+
[INFO ] [Window ] Provider: egl_rpi
|
184
|
+
|
185
|
+
[INFO ] [GL ] Using the "OpenGL ES 2" graphics system
|
186
|
+
|
187
|
+
[INFO ] [GL ] Backend used <gl>
|
188
|
+
|
189
|
+
[INFO ] [GL ] OpenGL version <b'OpenGL ES 2.0'>
|
190
|
+
|
191
|
+
[INFO ] [GL ] OpenGL vendor <b'Broadcom'>
|
192
|
+
|
193
|
+
[INFO ] [GL ] OpenGL renderer <b'VideoCore IV HW'>
|
194
|
+
|
195
|
+
[INFO ] [GL ] OpenGL parsed version: 2, 0
|
196
|
+
|
197
|
+
[INFO ] [GL ] Shading version <b'OpenGL ES GLSL ES 1.00'>
|
198
|
+
|
199
|
+
[INFO ] [GL ] Texture max size <2048>
|
200
|
+
|
201
|
+
[INFO ] [GL ] Texture max units <8>
|
202
|
+
|
203
|
+
[INFO ] [Window ] virtual keyboard not allowed, single mode, not docked
|
204
|
+
|
205
|
+
[INFO ] [GL ] NPOT texture support is available
|
206
|
+
|
207
|
+
[ERROR ] [Image ] Error loading texture ./movie/sample.mp4
|
208
|
+
|
209
|
+
[INFO ] [Clipboard ] Provider: xclip
|
210
|
+
|
211
|
+
[INFO ] [CutBuffer ] cut buffer support enabled
|
212
|
+
|
213
|
+
[INFO ] [ProbeSysfs ] device match: /dev/input/event3
|
214
|
+
|
215
|
+
[INFO ] [HIDInput ] Read event from </dev/input/event3>
|
216
|
+
|
217
|
+
[INFO ] [ProbeSysfs ] device match: /dev/input/event1
|
218
|
+
|
219
|
+
[INFO ] [HIDInput ] Read event from </dev/input/event1>
|
220
|
+
|
221
|
+
[INFO ] [ProbeSysfs ] device match: /dev/input/event2
|
222
|
+
|
223
|
+
[INFO ] [HIDInput ] Read event from </dev/input/event2>
|
224
|
+
|
225
|
+
[INFO ] [ProbeSysfs ] device match: /dev/input/event0
|
226
|
+
|
227
|
+
[INFO ] [HIDInput ] Read event from </dev/input/event0>
|
228
|
+
|
229
|
+
[INFO ] [Base ] Start application main loop
|
230
|
+
|
231
|
+
[INFO ] [HIDMotionEvent] using <FT5406 memory based driver>
|
232
|
+
|
233
|
+
[INFO ] [HIDMotionEvent] using <USB Keyboard Consumer Control>
|
234
|
+
|
235
|
+
[INFO ] [HIDMotionEvent] <FT5406 memory based driver> range ABS X position is 0 - 800
|
236
|
+
|
237
|
+
[INFO ] [HIDMotionEvent] <FT5406 memory based driver> range ABS Y position is 0 - 480
|
238
|
+
|
239
|
+
[INFO ] [HIDMotionEvent] using <USB Keyboard System Control>
|
240
|
+
|
241
|
+
[INFO ] [HIDMotionEvent] <FT5406 memory based driver> range position X is 0 - 800
|
242
|
+
|
243
|
+
[INFO ] [HIDMotionEvent] <FT5406 memory based driver> range position Y is 0 - 480
|
244
|
+
|
245
|
+
[INFO ] [HIDMotionEvent] using <USB Keyboard>
|
246
|
+
|
247
|
+
[WARNING] Deprecated property "<BooleanProperty name=play>" of object "<kivy.uix.video.Video object at 0x71a79930>" was accessed, it will be removed in a future version
|
248
|
+
|
249
|
+
```
|
1
verダウン手順についての確認
test
CHANGED
File without changes
|
test
CHANGED
@@ -27,3 +27,21 @@
|
|
27
27
|
|
28
28
|
|
29
29
|
よろしくお願いいたします。
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
---------追記------------
|
36
|
+
|
37
|
+
使う方法がない場合は、verを安定版に下げようと考えているのですが
|
38
|
+
|
39
|
+
その場合には、kivyを一度アンインストールしてから安定版のインストール手順を踏めばよいのでしょうか
|
40
|
+
|
41
|
+
あるいは、上書きのような形で可能なのでしょうか
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
また、依存モジュールの再インストール等も行ったほうがよいでしょうか。
|
46
|
+
|
47
|
+
合わせてご回答いただけると嬉しいです。
|