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

[ios] playing streams does not work without undocumented waitForBuffer parameter #616

Open
puckey opened this issue Jun 4, 2019 · 2 comments
Labels

Comments

@puckey
Copy link
Contributor

@puckey puckey commented Jun 4, 2019

After releasing the Android version of my app, I went over to iOS mode. I was unable to play any streams until I set the undocumented waitForBuffer parameter to true in TrackPlayer.setupPlayer:

  const buffer = 0.5;
  await TrackPlayer.setupPlayer({
    playBuffer: buffer,
    minBuffer: buffer * 2,
    maxBuffer: buffer * 2,
    waitForBuffer: true
  });

If I do not set this parameter, the stream plays almost directly and then stops again.

@Guichaguri Guichaguri added the iOS label Jun 25, 2019
@maartenvandillen
Copy link

@maartenvandillen maartenvandillen commented Jun 25, 2019

On my device it did not play at all without the waitForBuffer parameter. Android is working fine but I had never heard any audio on iOS until I added that.

@sebacaccaro
Copy link

@sebacaccaro sebacaccaro commented Jul 24, 2019

On my device it did not play at all without the waitForBuffer parameter. Android is working fine but I had never heard any audio on iOS until I added that.

Same here

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

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.