-
Notifications
You must be signed in to change notification settings - Fork 3
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
stream has too much local buffering based on user behavior #56
Comments
I have tested more rigorously and am quite confident that the stream is being instantiated at the wrong time in the flow. Or at least the local buffering of the stream starts at the wrong time. Currently, the stream is being instantiated with a I have done tests where I wait differing times between selecting the Institution and clicking the play button on the Listen screen and the amount of time I wait is more or less exactly added onto the resulting latency, so I am quite confident in what is happening. I see two potential solutions here:
I think the second solution makes more sense functionally, and I'm guessing it would be easier to implement in the code as well, but I need advice from @seeReadCode. Please let me know your reactions to my theory and proposed solutions and whichever solution you think is best, please point me to some key spots in the code to get me ramped up asap as this codebase is entirely new to me right now. |
@hburgund did you try my suggestion above, re: removing https://github.com/seeRead/roundware-ios-digita11y/blob/master/Digita11y/AppDelegate.swift#L31 ? |
yes; it resulted in a RWFramework error: |
Ah, because a user/session hasn't been established I imagine. So let's keep that And then 2. adding |
I tried this suggestion, but it didn't make a difference with the issue. As stated above, I think that the best solution is to get the So with this approach in mind, @zobkiw was able to help me get it working. I will post code soon, but essentially, we removed the |
…nificant latency increases due to local buffering - fixes roundware/roundware-ios-accessapp#56
fixed in framework with: roundware/roundware-ios-framework-v2@443c1c8 |
…nificant latency increases due to local buffering - fixes roundware/roundware-ios-accessapp#56
I am not sure of the inner workings on the client side, but for some reason, there is a very large amount of audio buffering of the stream in comparison to the typical 5-7 seconds that has been the case in other RW apps.
I have a theory, but it is unproven.
I don't know how the media player works, but I'm guessing that the solution will simply be to not instantiate the media player until the user gets to the listen screen and expects to hear audio. I realize this will likely add a few seconds delay to the initial start of playback, but we already have a spinner and this seems reasonable in comparison to the ridiculous delays we now can encounter.
The text was updated successfully, but these errors were encountered: