Comments (1)
The issue with pause/play causing the audio to go to the timestamp specified by seek(position) and then restart from the beginning may have to do with the play method having an extra step of seek(0) at the end? I can't quite figure out why this step is there. If you use ffpyplayer directly the toggle_pause() method works exactly like you expect -- as a toggle, there is no need to play around with seek() at all as it remembers the time stamp.
EDIT: If in my own code I build in a delay (e.g. via Clock.schedule_once) between play and seek(position) by triggering the seek() via the callback then it works fine -- I guess timing issues are causing the extra "seek(0)" to fall after my own code is doing seek(position)? Seems like a bug to me?
Code snippet from audio_ffpyplayer.py:
def play(self):
if self._state == 'playing':
super(SoundFFPy, self).play()
return
if not self._ffplayer:
self.load()
self._ffplayer.toggle_pause()
self._state = 'playing'
self.state = 'play'
super(SoundFFPy, self).play()
self.seek(0)
from kivy.
Related Issues (20)
- Dependency Dashboard
- Investigate an alternative for `no-response` bot
- Pyinstaller package required `LD_PRELOAD` to start on Linux HOT 1
- `disable_multitouch` should also disable MTD loading on Linux
- Markup=True in TextInput
- Scroll_to method jumps new widgets between bottom and top
- TabbedPanel button text is rotated when 'tab_pos: "left_top"' is used HOT 1
- DampedScrollEffect.update_velocity: ValueError: cannot convert float NaN to integer
- Add support for picamera2 HOT 1
- Why can't I find MDDataTable in Kivymd 2.3? HOT 1
- CMake error when installing SDL2 dependencies
- How to implement an android floating window? and accessibility controls? No relevant instructions found in the document HOT 1
- KIVY AnchorLayout How can i put 2 children widget in 1 AnchorLayout? xd HOT 12
- ActionOverflow crashes when there is an ActionSeparator
- kivy 2.3.0 unable to get Window macOS 10.13
- matplotlib error kivy 2.3.0 HOT 2
- Fails to build with GCC 14 due to -Wincompatible-pointer-types HOT 3
- ffpyplayer crashes on Linux after a number of files played HOT 5
- Kivylang include other kv files and is invalid in apk HOT 1
- Touch Focus for Android / iOS camera applications using Kivy
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kivy.