You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on an audio app for a local radio station using just_audio.
I noticed that this project uses a periodic stream instead of the audioPlayer.positionStream to track playback progress.
I had some issues using the latter in my own app resulting in high CPU usage and the phone getting hot, and I was wondering if this decision was based on similar experiences?
Congratulations to this projects, it serves as a great example of using just_audio and greatly helps as a reference for other audio enabled apps trying to achieve similar goals.
Many thanks.
The text was updated successfully, but these errors were encountered:
The positionStream from just_audio varies in how frequently it pushes to the stream based on the length of the audio, from 16ms to 200ms. I don't need such a frequent update in Anytime, so I rolled my own to keep the update frequency consistent at just 500ms and hopefully save some battery in the process too.
I'm working on an audio app for a local radio station using
just_audio
.I noticed that this project uses a periodic stream instead of the
audioPlayer.positionStream
to track playback progress.I had some issues using the latter in my own app resulting in high CPU usage and the phone getting hot, and I was wondering if this decision was based on similar experiences?
Congratulations to this projects, it serves as a great example of using
just_audio
and greatly helps as a reference for other audio enabled apps trying to achieve similar goals.Many thanks.
The text was updated successfully, but these errors were encountered: