On iOS, video from all other conference participants can be played without audio. For that, constraints for video-only should be passed when stream for playback is created
here.
E.g.,
Code:
var constraints = {
video: true,
audio: false
};
var stream = session.createStream({name: streamName, display: display, constraints: constraints, custom: {name: name_}});
For playing audio from other participants, another stream - audio mixer stream, to which the participants' streams are added when they join, - can be played in addition to the video streams.
Please see below the list of REST methods for audio mixer.
Stream audio mixing is available in this
branch: latest build
2593.
In case of server update, database files have to be removed. If there were any changes in the database (e.g., REST apps and methods), they would have to be restored manually after the update.
Update procedure
1. Stop the server and remove database files
Code:
service webcallserver stop
cd /usr/local/FlashphonerWebCallServer/database
rm -rf *
2. Download build 2593 from the new branch
3. Install
Code:
cd FlashphonerWebCallServer-5.0.2593
./install.sh
4. Start the server
Code:
service webcallserver start
REST methods for audio mixer
1. Create mixer
Code:
https://host:8888/rest-api/mixer/startup
{
"uri": "mixer://mixer1",
"localStreamName": "mixerStream"
}
Here,
- mixer://mixer1 - mixer object ID
- mixerStream - stream published on server for the mixer
As the result, empty mixer is created, to which available streams can be added. Stream published for the mixer (e.g., mixerStream) will contain mixed audio of the added streams.
By default, empty mixer is terminated after one minute timeout.
2. Add a stream to mixer
Code:
https://host:8888/rest-api/mixer/add
{
"uri": "mixer://mixer1",
"remoteStreamName": "stream1"
}
Here "stream1" is name of a stream available on the server.
3. Remove stream from mixer
Code:
https://host:8888/rest-api/mixer/remove
{
"uri": "mixer://mixer1",
"remoteStreamName": "stream1"
}
4. Find active mixers
Code:
https://host:8888/rest-api/mixer/find_all
{}
5. Terminate mixer
Code:
https://host:8888/rest-api/mixer/terminate
{
"uri": "mixer://mixer1"
}