updated to video play
This commit is contained in:
@@ -48,6 +48,7 @@ class MediaPlayer(Screen):
|
|||||||
self.video_player.opacity = 1
|
self.video_player.opacity = 1
|
||||||
self.video_player.play()
|
self.video_player.play()
|
||||||
self.image_display.opacity = 0
|
self.image_display.opacity = 0
|
||||||
|
Clock.schedule_once(self.next_media, duration)
|
||||||
elif file_extension in ['.jpg', '.jpeg', '.png', '.gif']:
|
elif file_extension in ['.jpg', '.jpeg', '.png', '.gif']:
|
||||||
self.image_display.source = file_path
|
self.image_display.source = file_path
|
||||||
self.image_display.opacity = 1
|
self.image_display.opacity = 1
|
||||||
|
|||||||
BIN
src/static/resurse/SampleVideo_1280x720_30mb.mp4
Normal file
BIN
src/static/resurse/SampleVideo_1280x720_30mb.mp4
Normal file
Binary file not shown.
BIN
src/static/resurse/harting_contactor.jpg
Normal file
BIN
src/static/resurse/harting_contactor.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 742 KiB |
Reference in New Issue
Block a user