2014-03-15, 04:04
I got a simple question i think.
I have a script that performs certain actions when playback starts and stops. (checks for certain words in filename/path)
When playback stops it triggers a downloader to resume actions.
There is a reason i start and stop downloader tasks and the problem now is that when multiple clients are watching media they could have a negative effect when an other client stops playback and triggers downloader.
So my idea was to build a extra function in script to perform a isPlaying check on all other clients before sending resume command to downloader.
And i also need to keep in mind that some clients could be powered off.
Is there anyone that could help me create such function or kick me in the right direction?
It would be nice if it also could check for certain words/paths for other clients like i do now for active one but that's not important now.
For now i only want to do a check on all clients if they are playing something (and possible return back what they are playing), if other clients are playing media the script should stop.
This is the script i'm talking about https://www.dropbox.com/s/29o8i8r1o02pvr...nzbget.rar
I have a script that performs certain actions when playback starts and stops. (checks for certain words in filename/path)
When playback stops it triggers a downloader to resume actions.
There is a reason i start and stop downloader tasks and the problem now is that when multiple clients are watching media they could have a negative effect when an other client stops playback and triggers downloader.
So my idea was to build a extra function in script to perform a isPlaying check on all other clients before sending resume command to downloader.
And i also need to keep in mind that some clients could be powered off.
Is there anyone that could help me create such function or kick me in the right direction?
It would be nice if it also could check for certain words/paths for other clients like i do now for active one but that's not important now.
For now i only want to do a check on all clients if they are playing something (and possible return back what they are playing), if other clients are playing media the script should stop.
This is the script i'm talking about https://www.dropbox.com/s/29o8i8r1o02pvr...nzbget.rar