Sithira / FlutterRadioPlayer

Flutter Radio Player, A Plugin to handle streaming audio without a hassle
MIT License
139 stars 64 forks source link

Duration & seek-to functionality #29

Closed ripetrescu closed 2 years ago

ripetrescu commented 3 years ago

Hi.

Is there any chance to have a duration stream and maybe seek-to functionality?

Similar to what notification has now, a way to show a duration seek-bar and updated it using a StreamBuilder maybe.

Thanks!

Sithira commented 3 years ago

Hi,

This is designed to handle live streams. Hence seeking is not possible to my understanding.

On Mon, 30 Nov 2020 at 9:06 PM, Rares notifications@github.com wrote:

Hi.

Is there any chance to have stream duration stream and maybe seek-to functionality?

Similar to what notification has now, a way to show a duration seek-bar and updated it using a StreamBuilder maybe.

Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Sithira/FlutterRadioPlayer/issues/29, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB6V3BIUQXHWO3M5LCSYDFTSSO3ZHANCNFSM4UHXNG7Q .

-- Sent from Gmail Mobile for iPhone

ripetrescu commented 3 years ago

Hi,

So I implemented the library and it works perfectly to play this stream http://howtoplaypodcast.com/podpress_trac/feed/1379/0/htp044_clash_of_cultures.mp3, which is not a continuous live stream, but an online stream with a fixed duration.

But if you check while the notification while this stream is playing you'll see it gives you the possibility to use a seek bar and change the current playing position, basically it works very well.

The thing is that in the app there is no way to have control to do such thing, something that I can specify from the app programmatically, using the library, to play from a different position.

I understand what you are saying about the library being developed for live continuous streams only (like a radio), but I thought since it's already handled in notification (the seek-to feature) this will be doable to expose through library to end-user.

Thanks!

Sithira commented 2 years ago

Kindy update to the version 2