Closed dcodeIO closed 12 years ago
Another suggestion: I have a need for a way to set an unchangeable global parameter, that will not be lost during stop/start restarts of that application, and I am currently using the cumulus object to set this. However, other applications must not be able to change that value including its contents in any way. Maybe you have an idea how to implement this, like a persitence store for variables that can be only accessed by the application that stored it.
Redirected to the forum: http://groups.google.com/group/openrtmfp-cumulus/browse_thread/thread/53f0e361f04f63ec
Hello,
I am still amazed of the comprehensive scripting capabilities in Cumulus, but I have a few suggestions:
Publication objects currently contain the field "publisherId" that is an integer value. I have not managed to get the corresponding client from "cumulus.clients" by some means and had to create my own hash table that I fill and clean from onPublish/onUnpublish. It would be great if there'd be a way to get the publisher's string client id, there moreover can be used to get the client from "cumulus.clients", on a simple way in onSubscribe/onUnsubscribe. I use this to notify a client that someone is listening to his relay stream.
Another point is that in onSubscribe and onUnsubscribe there is of course the option to determine how many listeners there are to the corresponding publication by evaulating "listener.publication.listeners.count". This seems to me like a somewhat long way to get this. Not a real problem but maybe there is a way to make this simpler. Additionally, the "count" value returns the previous/old count that has been current before the client subscribed/unsubscribed. This is not a big problem once you know it, but it would be nicer if it would contain the "now current" count. Else it would be a great addition to the Wiki to say that it's the previous count.
Regards dc