2020-06-17, 02:49
the requiring a service to send the signal seems like it shouldn't be required?
Your addon would already have a service running.
so it could listen for onavstarted() ?
Then simply check if you "know" about that content and if so - do your stuff
else just ignore.
Would make much easier for add-ons to integrate.
They simply send out the signal before playing the episode.
No need to have their own service / thread waiting for playback to start before sending your add-on the signal.
Disney sends signal: current episode "simpsons ep1", next episode "simpsons ep2"
Upnext gets above data and stores it
Upnext onavstarted() called. Gets the playing file, sees it is simpsons ep1 so accepts it and does whatever needed to prepare for next up.
Your addon would already have a service running.
so it could listen for onavstarted() ?
Then simply check if you "know" about that content and if so - do your stuff
else just ignore.
Would make much easier for add-ons to integrate.
They simply send out the signal before playing the episode.
No need to have their own service / thread waiting for playback to start before sending your add-on the signal.
Disney sends signal: current episode "simpsons ep1", next episode "simpsons ep2"
Upnext gets above data and stores it
Upnext onavstarted() called. Gets the playing file, sees it is simpsons ep1 so accepts it and does whatever needed to prepare for next up.