cylonid / NativeAlphaForAndroid

GNU General Public License v3.0
599 stars 56 forks source link

No sound. #79

Open NZsolt91 opened 1 year ago

NZsolt91 commented 1 year ago

On my devices the Nativealpha isn't able to auto play sound. Is there a way to solve my problem?

cylonid commented 1 year ago

Can you explain in more detail what the problem is? Sound playback is working definitely. If it's about auto-play, which website are you referring to?

Playback in background does not work and this is unlikely to change with the current browser engine.

dustinkerstein commented 1 year ago

I'm also seeing a potentially similar issue on one of my own sites that uses the built-in html5 audio player controls. I'd be happy to debug it a bit further on my end, but I won't be able to get a build environment setup for a couple days. I tried to quickly look into the webview's devtools javascript console, but it doesn't look like webview debugging is enabled (side note - it would be awesome if that was exposed as a user setting).

Upon some quick googling I found this - https://stackoverflow.com/a/64124295 but unfortunately I can't try that workaround due to a CORS violation - which is likely due to the fact that I'm testing NativeAlpha with a Google Apps Script hosted page which has many layers of iFrames. FYI the syntax of the URL that works fine in full browsers is https://drive.google.com/uc?export=download&id=XYZ - Also, I was able to replicate this behavior in the DuckDuckGo browser, but there doesn't seem to be a way to enable webview debugging for it.

Let me know if there's anything else I can get you. I'll try to get a debug build going soon.

dustinkerstein commented 1 year ago

Figured it out. It seems that if Accept third-party cookies is disabled, you'll have these OAuth issues. Enabling that setting completely solved my issue (though not sure it is the same as OP's).