Skip to content

Commit 8f1a6a3

Browse files
committed
Add Decoder.loop_count property
1 parent 87aa96f commit 8f1a6a3

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)