Skip to content

Commit f2d672f

Browse files
authored
Merge pull request #9 from open-cogsci/fix_loop_count
Fix removed Decoder.loop_count public property (unbreak OpenSesame media player)
2 parents 87aa96f + 8f1a6a3 commit f2d672f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

mediadecoder/decoder.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ def current_playtime(self):
118118
"""Clocks current runtime in seconds."""
119119
return self._clock.time
120120

121+
@property
122+
def loop_count(self):
123+
"""Indicates how often the clip has looped."""
124+
return self._loop_count
125+
121126
@property
122127
def loop(self):
123128
"""Indicates whether the playback should loop."""

0 commit comments

Comments
 (0)