How many clients are you talking about here? You could probably write
one program that manages a set of Popen objects which are doing whatever
you want with the audio streams and implements a simple http server that
the clients connect to via websockets or longpolling to listen for
events...
m
--
Matt Billenstein
ma...@vazor.com
http://www.vazor.com/
Nope, ideally, no Popen, gstreamer's python bindings, I will most likely
need to tweak the streams while their running, etc...
Regarding clients, I think at most 100 clients, this is an internal
company project, at least for now.
Regarding the events communication with clients, well, within the main
daemon, I was thinking zmq, either for same process communication or
inter-process/inter-thread communication, regarding front-end clients, I
was thinking websockets yes...
Regards,
- --
Pedro Algarvio
__ ___ ___ _______ ___ __
| Y .' _| _ .-----.' _| |_ .-----.----.-----.
|. | | _| 1___| _ | _| _|__| _ | _| _ |
|. | |__| |____ |_____|__| |____|__|_____|__| |___ |
|: 1 | |: 1 | |_____|
|::.. . | |::.. . | ufs [AT] ufsoft [DOT] org
`-------' `-------' ufs [AT] sapo [DOT] pt
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAk0XQ0oACgkQcOJJ0dKIu0f2nwCfStj8XOo2uyen9gsxXvj6tJ45
jfwAn1A1ykER4aGznDS85MWUjn6hwfFk
=rNC3
-----END PGP SIGNATURE-----
Hmmm, I'm not familiar with gstreamer, but I think you're going to
possibly have issues there if gstreamer calls block or go down into
c-modules which won't cooperate with the gevent event loop.
gevent for serving the client-side seems perfect, but it you may need
additional processes (or threads, although these are frought with
problems in Python due to the GIL) to handle the processing/gstreamer
side of it.
m