-
Notifications
You must be signed in to change notification settings - Fork 33
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 not playing #18
Comments
What iOS version is your iPad running on? Have you tried playing audio on an iPhone? Here they say that on iOS 10.1.1 the web audio API is not working: https://developer.apple.com/forums/thread/48815
|
It is an iPad Pro. Running iOS 14.0.1. Same as an iPhone 11 Pro Max. Also Not Working. On the current iMac it only works in chrome also, Not in safari. |
Yep, smells like an compatibility issue with webkit. I don't own any iDevices to fix this, so I've labelled this with "help wanted". |
@sys-b @FredVDB Can you try the develop branch? |
Still no audio with the modified snapcontrol.js. Is there some way to get logging info ? |
Yes, this should be possible: The modified snapcontrol.js introduced an explicit event listener for the play button click event, as suggested on stackoverflow. Before it was a link to a java script function. Did you restart the snapserver after copying the file? The server doesn't cache (refreshing the browser should be enough), but who knows. |
Can you please try again the develop branch or the attached snapstream.js.zip? |
The chrome log looks as expected, the audio player tries to fill the buffer before having received the first audio chunk. |
So the error message disappeared, the
|
The iPad doesn't have a mute switch. Other websites like YouTube work. On the iPhone with mute off also no sound. I had once problems with video html5 elements. They had to be muted if not, the element wasn't playing automatically. Gute Nacht. |
Snapweb is using a triple audio buffer. When a buffer finished playing, it should fire an |
I have tested it, with same result and (almost) same log. :( |
When one of my programmers is back from holidays I will give him the task to fix this. He is really fit in TypeScript. |
Sounds good :) |
I started poking at this a few days ago to see if I could get anywhere. From what I can tell the context is suspended and thats why the Related: https://stackoverflow.com/questions/46249361/cant-get-web-audio-api-to-work-with-ios-11-safari |
@inickt @FredVDB @sys-b I could reproduce the issue that |
It works (kinda)! Plays fine on my iPhone on iOS 13.5. Safari on macOS Big Sur and my iPad on iPadOS 14.2 sounds pitch shifted up and stutters, but its something! Since its fine on 13 I'm guessing Safari version 14 broke something. I can investigate and send logs if you want. For my iPhone and iPad I had to make sure it wasn't muted, this seems to be a common issue people run into with how they set up the audio session. Not sure how the Someone made this package to fix this but here might be some pointers to implementing it manually: |
Snapweb uses |
I have an iPad and would like to help debug this. Let me know what I can do. |
I can confirm that the latest commit from Unfortunately the sound stops (with a nice fade out transition) whenever the app loses focus or the screen of the device is turned off. But I guess that's an out-of-scope issue for this project. |
thats actually something that prevents the app from actually being useful on IOS. you can still use it as a remote control but listening to music on the phone is not really working for me like that (who keeps the display on all the time?). what would also be nice: having controls in controlcenter just like in other mediaplaying-apps. cheers |
@bendschs Just in case you don't know about it, there is a native iOS app that is able to stream audio in the background: https://github.com/stijnvdb88/Snap.Net |
thanx for the hint. i tried the app but it‘s functions are really reduced. you can not skip songs there, neither play or stop them. it‘s basically just for turning on the phones (or other) speakers, so it‘s not really an alternative to iris (nor is it a very valuable addition). cheers |
just tested one more time with mopidy-iris and with native webinterface of snapserver: audio oputput of snapweb seems to be broken for ios right now (tried various browsers but that probably does not even make a difference beacause in the end they are all "webkit"). cheers |
is this working for you guys? i am on IOS 14.7.1 and tried with the dev-branches and the modified snapstream.js but it‘s not working, when i hit the play button i get a message with the content "error" (and nothing else). |
sad that nobody seems to be able or willing to solve this 😢 |
why is this closed, it‘s definitely not working on safari (nor on macos, nor on ios). i am willing to provide logs if needed. |
My browser is showing this issue as open 😕 |
Same here. Must be yet another safari issue. |
haha sorry, my bad. i was looking at the "closed"-tag of the puzzlescript reference by mistake. i wonder why that one is working (it‘s working indeed, just tested) and why it is related to the snapweb audio problem on safari? |
Hello! the issue is still persistent on my Ipad air 5G. I tried many different browsers and branches. I looked at snapstream.ts and tried to figure out how to make it work, but I don't really have typescript or snapcast knowledge. I will try but any help is appreciated. |
This one does kinda work: webkit...bakaiadam:snapweb:webkit it needs some cleaning, and it is probably a little bit less precise than the original. Typescript didn't like the outputlatency stuff so it was removed but it has no connection with the other change. |
Seems like that the snapweb audio streaming support on iOS 15.x and some versions of iOS14.x is broken? |
like discussed in #43 the changes suggested in webkit...bakaiadam:snapweb:webkit make it work in safari and IOS. Would it be possible to include these changes in the upcoming react-version? |
Neither the latest on the develop branch nor the react branch give audio output on an iPhone 6S running iOS 15.7.5. Debugging now and I see that iOS is never dispatching an end event for the AudioBufferSource (PlayBuffer.source) (which needs to be relayed to this event handler) whereas working clients are. Will try to dig further. |
Installed last release 0.7.0 and iOS is still not working. How could I help to debug what's going on? |
You could donate apple hardware to @badaix |
@arpena I'd suggest general bug report details: hardware, OS, and browser details. You might also try v0.6.0 as a fix I contributed was included in that release prior to more changes, it's possible that iOS output has regressed since then. I'm still running my own build from this commit: curiousercreative@e025342 |
for me it is working again since 0.6.0, also on latest IOS. |
Hmmm, on 0.7.0, an iPhone SE and latest Chrome it didn't work for me... |
strange on 0.7.0 on latest brave it is working for me. i just wished the newest snapweb would be implemented into mopidy-iris. :/ |
Under iOS the controls are working fine. Just like the desktop.
But the client is not playing. It is displayed linke on the desktop, but no audio is played.
Tried in Chrome, Safari, Firefox and even Opera.
The iPad-chrome-console output after while pressing play:
The text was updated successfully, but these errors were encountered: