Audio Mixer Demo
This demo illustrates how we can use HPSearch to rapidly deploy applications and control their functioning.
The demo uses the AudioMixer from the GlobalMMCS project and NaradaBrokering to route data streams.
We have custom wrapped the AudioMixer service as a Web-service. Using HPSearch we can then control the
audio mixer. This involves arbitrarily adding and removing streams to be mixed.
As shown in the setup, we have 2 or more audio sources. Each of these audio sources are identified using a
topic number. (Refer to GlobalMMCS for more information).
We also have a AudioMixerServer that exposes a custom Web-Service interface. This exports one function
ExecuteAction and accepts the following parameters.
ssid - The ID of a MixerService instance
msg - The control message, (Custom XML)
The init script initializes the constants and functions used in the system.
Following this we create a new mixer session and then we can add, remove participants as shown below.
avservice = "http://156.56.104.170:10010/axis/services/AudioMixer?wsdl";
ssid = createMixerSession(avservice, 6000, "156.56.104.170", 3045, "default", 700);
if(!ssid.equals("-1")) {
add(ssid, 1000, 6000, "default");
add(ssid, 2000, 6000, "default");
}
/* Then we can add more streams as above OR delete stream */
remove(ssid, 2000);
/* Finally delete the mixer instance and release resources */
deleteMixer(ssid);
Interaction Script
Misc