Pato05 / just_audio_media_kit

A platform interface for just_audio which wraps media_kit
https://pub.dev/packages/just_audio_media_kit
The Unlicense
9 stars 12 forks source link

Fix setting initial position (#6) #7

Closed Pato05 closed 8 months ago

Pato05 commented 8 months ago

Fixes #6.

NOTE: This fix is temporary, and, a way to start loading the stream from the specified position should be found.

Pato05 commented 8 months ago

This works, but I wonder whether there's a cleaner way to handle this, as what this does is basically wait for mpv to load the track, then seek to the desired position; though this is not ideal as it requires mpv to start loading the track in its entirety.

I wonder if there's any way to actually seek before loading the track.

Chaphasilor commented 6 months ago

Today I noticed that sometimes tracks are reset to position 0 one or two seconds after starting to play. So they start playing from the beginning, and the progress indicator shows that, but then they reset and start over. Happens both when manually skipping or when the player changes to the next track.
Could this be related to this fix?