Add Timed Playlist feature and minor refactors#217
Add Timed Playlist feature and minor refactors#217hburgund merged 6 commits intoroundware:developfrom 13rac1:187/duration-audio
Conversation
|
OK, did some more testing on this and the behavior seems to still be what I indicated before:
I’ll have a closer look at the code tomorrow, but I’m thinking this is just something simple that needs tweaking so that |
|
My testing methodology: Start a stream with |
|
OK, I think I may have made some progress. I changed the Just adding the line to update the So it seems some progress, but clearly still at the very least cleaning up to do. I’ll look more tomorrow, but let me know what you think. Is my new line of code somehow triggering the code you thought would already update the timed playlist items due to |
|
from @eosrei: Ok. I understand what you are doing, but this doesn't make it work any better. I didn't put the code in Here is how it works:
Yada yada yada, recording_collection._update_playlist_timed is called. |
|
My change very likely is not the right approach to take, but it does in my testing cause the timed playlist assets to play when a We also need to add something later to handle the situations that I think would still not work properly even when
I am not worried about the global-listen projects now since that’s not the immediate use case and there are some other issues with global listening left over from earlier. But the specific situation with geo-listen projects should eventually be addressed, though once I start using what we’ve got more, I’ll have a lot more info with which to inform how we handle this. |
|
from @eosrei: This concerns me, because the only reason that would make a difference is if there is something drastically wrong. It's quite explicit in the code. There is an issue with Geo Listen in general. IDK how it worked correctly before. Seems like it could never work. It seems like we should replace the audio playing code. It currently runs after after an audio file stops playing or after Once a second:
This would allow you to easily force "constant timing" too. |
|
Well, maybe I’ve just done something totally wacko with my testing…always a possibility. I can try to do another fresh test. I like your timer idea. Seems to me since all of RW is related to time since it’s audio, that having some kind of overall timing mechanism in place would be helpful for a bunch of different features. But we don’t need to do this right now as that seems like a bit of a drastic code change. |
|
Eh.. It's not that drastic IMO and it's also the only reasonable solution I'm seeing for this specific issue. |
|
|
Add Timed Playlist feature and minor refactors
Initial pull request for discussions of new feature. This code works, but needs some additional features and unit tests.