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

[Feature request] Stream in chunks #275

Closed
sayem314 opened this issue Apr 17, 2021 · 6 comments · Fixed by #285
Closed

[Feature request] Stream in chunks #275

sayem314 opened this issue Apr 17, 2021 · 6 comments · Fixed by #285
Labels
🥺 feature request Request a new feature
Projects
Milestone

Comments

@sayem314
Copy link

Version of react-native-audio-recorder-player

2.6.2

Platforms you faced the error (IOS or Android or both?)

both

Behavior

When playing a large podcast file from remote location it's not streaming in chunks/real-time but instead, it's downloading it fully first. The server is sending proper responses. react-native-video package plays as expected so it's not server-side issue.

@hyochan
Copy link
Owner

hyochan commented May 8, 2021

This is a limitation on AVAudioPlayer which we are using. Currently, I am looking to migrate to AVPlayer as described in #284

@hyochan hyochan added this to the 3.0.0 milestone May 8, 2021
hyochan added a commit that referenced this issue May 8, 2021
Resolve #284 

Release ASAP as a `beta release`. => `3.0.0-beta.1`

Closes #231 #245 #275
@hyochan
Copy link
Owner

hyochan commented May 8, 2021

Please try 3.0.0-beta.1 if you have time.

Closes via #284

@hyochan hyochan closed this as completed May 8, 2021
@milesscherrer
Copy link

Not sure if streaming works in 3.1.0, or at least playback has a long delay on remote files. Starting playback of remote files takes > 3 seconds even on fast network.

Tried to add:

audioPlayer.automaticallyWaitsToMinimizeStalling = false
audioPlayerItem.preferredForwardBufferDuration = 1.0
audioPlayer.playImmediately(atRate: 1.0)

but playback still takes > 3 seconds to start and these settings seems to have no effect.

As it audio file size does not seem change start delay, maybe streaming is working. But then it is still a problem that there is a major delay on start play.

@franbe7
Copy link

franbe7 commented Oct 25, 2021

@milesscherrer I'm having the same problem, could you solve it?

@tragicmj
Copy link

Facing the same problem, any solution found?? @milesscherrer
This issue should be open @hyochan

@devlprkhan
Copy link

Same is there any way to stream audio recording and send the live audio recording chunks using data stream methods to our server, my main issue is that there is any way? to get realtime audio chunks while recording :(,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🥺 feature request Request a new feature
Projects
No open projects
3.0.0
Awaiting triage
Development

Successfully merging a pull request may close this issue.

6 participants