Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using seekTo while playing from url terminates the playback #189

Open
zangarmarsh opened this issue Apr 27, 2021 · 1 comment
Open

Using seekTo while playing from url terminates the playback #189

zangarmarsh opened this issue Apr 27, 2021 · 1 comment

Comments

@zangarmarsh
Copy link

zangarmarsh commented Apr 27, 2021

I want to play a mp3 file from a URL. Its size can be between 30MB and 200/300 MB. Playing/Pausing works fine, but every time I seek to a specific time, instead of pausing for buffering, it stops as if it had finished playing back the audio.

I tried either with a whole mp3 file and with a chunked one with several 206 responses, which works fine in the browser, but using nativescript-audio stops. The latter solution - the chunked one - would be the best one because of the aforementioned potential big size the mp3 might reach. Anyway, any solution would be very appreciated.

Thank you in advance for any tip/suggestion.

@Bezlepkin
Copy link

Bezlepkin commented Feb 28, 2022

according to the seekTo method, the track should not be stopped. But here's what I noticed for myself. I tried to make a player on Flutter today, seekTo works faster there. although NativeScript plugin uses native method for iOS:

https://developer.apple.com/documentation/avfoundation/avplayer/1385953-seek

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants