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

Bug: "Chat Only" is ignored when app is activated from background #608

Open
kryptografisch opened this issue Jan 17, 2025 · 0 comments
Open

Comments

@kryptografisch
Copy link

Hello, I'm using Xtra for quite a while now and it is a very good alternative to the official client.

I have following issue to report. I may also want to contribute, if i find time

Summary

Resuming Xtra from Background, while 'Chat Only' mode was activated, sometimes starts stream video after resuming app, allthough 'Chat Only' is still activated (after longer suspension/app was in background)

Scenario/Context:

I watch a twitch stream on my tablet or tv, but I use my phone to chat.
So i activate 'Chat only' from the srttkns/cog icon on stream overlay for typing from my phone while the stream video on my phone is paused

When I finished chatting I suspend the app to the background (swipe it away so)
Later when I want to continue chatting, I go the Android Overview of currently running apps and reactivate Xtra

The problem:

when the app is brought to the foreground/resumed, sometimes the stream starts palying, allthough in current stream settings still shows "chat only"
To make the stream stop I have to press pause by hand
or go to cog icon, choose any other option and after changing playback mode is complete, I have to cha change the setting again, back to "Chat Only"

This only happens when the app was in the background for a longer period (about 1 minute?)
Instantly switching back to Xtra after putting it to background does not show this issue

Possible fix

After Supsension Handler should restart stream only if a 'Auto' or a stream quality is set, should not start video but audio playback when 'Audio Only' is set
and should not start the stream (but still connect tl chat) when 'Chat Only' is set

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

1 participant