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

Connectivity issues can result in episodes being marked as read. #55

Open
amugofjava opened this issue Jul 30, 2021 · 7 comments
Open
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@amugofjava
Copy link
Owner

Describe the bug
Anytime is not distinguishing between an episode stopping because it has come to the end or as a result of a connection issue or drop out. If you have mark played episodes as read enabled in settings, this can result in an episode being marked as played when it hasn't.

To Reproduce
Steps to reproduce the behaviour:

  1. Enable mark played episodes as read
  2. Begin streaming an episode.
  3. Enable airplane mode and wait for buffer to run out.

Expected behaviour
If, when streaming, an episode stops due to a connectivity error the current play position should be recorded and the episode should not be marked as played.

@amugofjava amugofjava added the bug Something isn't working label Jul 30, 2021
@Chralu
Copy link
Contributor

Chralu commented Mar 3, 2023

Hi @amugofjava ,

on current master branch, there is no mark played episodes as read.

Did you mean mark deleted episodes as played ?

@amugofjava
Copy link
Owner Author

Yes, I did mean that @Chralu.

@amugofjava amugofjava added the good first issue Good for newcomers label Nov 29, 2023
@mrkrash
Copy link
Contributor

mrkrash commented Jan 4, 2024

Hi,
I tried to replicate this bug on the simulator (iphone) but failed: the player remains waiting for connection and does not go into time-out. At that stage, the pause button does not respond to the command.
Closed and reopened the application, the episode used as a test, still remains to be read.
I also ran the test on an Android device and the behavior is identical.

@amugofjava
Copy link
Owner Author

Hi @mrkrash,

Thanks for checking this out. It looks like this issue has changed since it was logged. Trying this now on iOS, the playback goes into loading state when the buffer is exhausted and stays like that, with the spinner spinning - it doesn't seem to ever time out, which is not good. It's better on Android in that it does eventually timeout, but once the connection is available again it can take two taps on the play button to get it playing again.

@mrkrash
Copy link
Contributor

mrkrash commented Jan 12, 2024

Hi @amugofjava,
I tried to better understand why it does not go into timed out and it seems that the problem is in just_audio library. The latter does not change state despite the lack of connection. There also seems to be an open issue about it.
I'll try to see if there is a way to recover the connection timeout status and, if so, pause the player.

@amugofjava
Copy link
Owner Author

Hi @mrkrash,

Thank you for diving into this. Could you please add a link to the open just_audio issue - I would be interested in taking a look (there are a lot of open issues and couldn't spot this one)?

Thank you.

@mrkrash
Copy link
Contributor

mrkrash commented Jan 12, 2024

Sure, ryanheise/just_audio#117

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants