Selaa lähdekoodia

Merge f09959efcf into 190329da70

pull/53/merge
Tobias Perschon 5 vuotta sitten
committed by GitHub
vanhempi
commit
247961e8f3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 muutettua tiedostoa jossa 7 lisäystä ja 0 poistoa
  1. +4
    -0
      Adafruit_Video_Looper/video_looper.py
  2. +3
    -0
      video_looper.ini

+ 4
- 0
Adafruit_Video_Looper/video_looper.py Näytä tiedosto

@@ -56,6 +56,8 @@ class VideoLooper:
self._osd = self._config.getboolean('video_looper', 'osd')
self._is_random = self._config.getboolean('video_looper', 'is_random')
self._keyboard_control = self._config.getboolean('video_looper', 'keyboard_control')
# Get seconds for waittime bewteen files from config
self._wait_time = self._config.getint('video_looper', 'wait_time')
# Parse string of 3 comma separated values like "255, 255, 255" into
# list of ints for colors.
self._bgcolor = list(map(int, self._config.get('video_looper', 'bgcolor')
@@ -235,6 +237,8 @@ class VideoLooper:
# Load and play a new movie if nothing is playing.
if not self._player.is_playing():
movie = playlist.get_next()
if self._wait_time > 0:
time.sleep(self._wait_time)
if movie is not None:
# Start playing the first available movie.
self._print('Playing movie: {0}'.format(movie))


+ 3
- 0
video_looper.ini Näytä tiedosto

@@ -33,6 +33,9 @@ file_reader = usb_drive
osd = true
#osd = false

# Below you can set a timout time (in seconds) that is waited between each video
wait_time = 0

# To play random playlist.
is_random = false



Ladataan…
Peruuta
Tallenna