I manage removable devices on a headless server, unmounting devices
which are not in use, and signaling they can be removed.
Since a CD Audio does not mount, I currently flag as idle a CD audio
disc, even when it is currently being used via the CDplayer plugin. I
would like to fix that.

When checking for mounted devices and their type, I could, when a CD-A
is detected:
- loop among all local players in mode play,
- do the equivalent of this: echo '<playerid> path ?' | nc -w 1
localhost 9090 | grep 'cdplay%3A%2F%2F6%3F'

and flag active if I get a true result.

Is this the right way of doing it ?


-- 
epoch1970
------------------------------------------------------------------------
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=47288

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to