-
Notifications
You must be signed in to change notification settings - Fork 45
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
Reporting trough event-manager, so the played songs will pop up in the listening history #172
base: develop
Are you sure you want to change the base?
Conversation
…d) - updated from main-branch
…e listening history
Sorry, I thought it would be wise to make a pull request for each important commit.
futher, following things should be implemented
|
Thanks a lot for the changes. I will try to review each PR one-by-one, and merge it into the develop branch. Currently I have the https://github.com/feelfreelinux/cspot/tree/feat/repeat-shuffle branch that's pending merging into main too, so will try to wrap it up together. |
…e listening history
Gzip working
…e listening history
…nto EventManager
so.. i think i can finally call it a day.. i like the queuedtracks feature.. shuffeling and unshuffeling can be done properly. i'm just scared of unshuffeling if a queued track is playing :) but i'll try that probably soon. |
i think enableTimestampLogging should be removed on esp32's main.cpp. i'm not exactly sure if it's because of the timestamplogging, but my esp always breaks down on the same line after some time (could be 6 min, could be 3 hours). (could be that the contextResolve breakdown was because of the same)
|
Hm, it might be that the timestamp error is caused by an memory corruption or heap overflow elsewhere - I'll take a look into it. |
hmmm.. that's bad, that shouldn't happen. so you're telling me, that each preloaded track executes the runTask, even tough they'd never ghet played?
and remove line 350 - 352 from TrackPlayer.cpp |
and well.. the values wouldn't match perfectly with their intended usecase, but the reporting should happen perfectly fine |
…if there are any missreads in the stream
so.. with that commit, i've seperated all the context stuff from trackqueue. that all the radio tracks(spotify smart shuffle) get loaded properly, i had to reduce the preloaded track size to two. but it's running quite smooth for me :) it's, as described with last big commit. it loads some tracks from context, and in case of shuffle, or a depleted tracklist, the context resolver gets called, and decides, if new playlist tracks should be loaded, or the playlist continues with loading new tracks. what hasen't been done is, that tracks in the queuedTracks get deleted after shuffle gets undone. and somehow i cant tell spotify that i'm smart-shuffeling. |
nope.. i don't know, wher the mistake is, but preeloadedTracksSize needs to be 3, itherwise, the initial load call doesn't play further than 2 songs.. i'll find out which one is easyer to solve, the preloadedtracksize 3, and a solution to the radio thing, or the preloadedtracksize 2 and the continuos playing |
so.. i think the first stage can finally be called done. all further commits will be comsetics. |
Thanks! I'm slowly testing and fixing up your work a little bit :) Thanks a lot for the huge amount of effort that went into this. I found few minor bugs and a mem leak in Mercury Response struct - will commit my changes soon. |
thanks a lot.. i'll be happy to hear from you. there's one last commit gonna come. there happened some mistakes with the trackloading, should be fixed any minute and then i'm off trying to find out how to properly report. but i've tried already a little and i don't know if ther's anything to come |
* moved trackmetrics playStart back to TrackPlayer because needed * changes in track queueing
i think i know the mainproblem, i've created. |
simple solution for that would be to pass a shared_ptr of the preloaded track to espPlayer |
Nope.. that's one of the worst thing i could have suggested.. and i neither think it's the problem. I don't know why it plays so bad with softwaredecode.. mine plays so smooth |
5726879
to
209d278
Compare
Before this commit, played songs by cspot weren't displayed in the listening history. Therefore they had no influence on the algorithm, neither got the artist those plays reported.
I've created a Event-Manager that reports at the end of a playback.
I think this commit is quite important