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

not working on safari too #8

Closed
this-spring opened this issue Jul 28, 2020 · 6 comments
Closed

not working on safari too #8

this-spring opened this issue Jul 28, 2020 · 6 comments

Comments

@this-spring
Copy link

the lib can not play in safari.
sampleRate 44100
live stream by webscocket

@samirkumardas
Copy link
Owner

Can you provide any demonstration?

@this-spring
Copy link
Author

Can you provide any demonstration?

emmm, i receive opus by websocket. i decode opus to pcm by wasm. i use pcm-player play the pcm data, it is fine in chrome. it not working in safari.

I feel that Safari can only call the flush interface once, and it will not play the sound for many calls. It is called many times when it is live, so it can not play.

@samirkumardas
Copy link
Owner

well, Safari has a buggy implementation of web audio. Though so far I remember it was fine when sampleRate > 22050
I will re-check

@this-spring
Copy link
Author

well, Safari has a buggy implementation of web audio. Though so far I remember it was fine when sampleRate > 22050
I will re-check

ok, thanks, my pcm sampleRate is 44100, you can test.

@pkjy
Copy link

pkjy commented Aug 1, 2020

well, Safari has a buggy implementation of web audio. Though so far I remember it was fine when sampleRate > 22050
I will re-check

ok, thanks, my pcm sampleRate is 44100, you can test.

I have just do some work with Safari several weeks ago ,And here's some experience:

  1. safari can only play above 22050 Hz data. see safari-webkitaudiocontext-createbuffer-api-raises-notsupportederror-exception
  2. when safari's recording ,data's samplerate is always 48000 . even though I set other values.
  3. safari only accept 4 AudioContext instance ,and fail in the fifth one.

other experience I've come up with can be found in websocket pcm webaudio experience

Repository owner deleted a comment from this-spring Aug 1, 2020
@samirkumardas
Copy link
Owner

If you find a solution, I will appreciate PR. Don't need to post anything else.

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

3 participants