Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

Commit 28fc51d

Browse files
authored
Add ActiveAudiSelecting option in doc and sample console (#817)
1 parent b166b03 commit 28fc51d

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

doc/servermd/RESTAPI.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ Data Model:<br>
130130
mediaOut: object(MediaOut), // the output media constraints
131131
transcoding: object(Transcoding), // the transcoding control
132132
notifying: object(Notifying), // notification control
133+
selectActiveAudio: boolean, // select 3 most active audio streams for the room
133134
sip: object(Sip) // SIP configuration
134135
}
135136

source/management_console/public/js/App.js

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -988,6 +988,35 @@ class RoomModal extends React.Component {
988988
);
989989
}
990990

991+
renderActiveAudioSelecting() {
992+
return e(
993+
'div',
994+
{className: 'panel panel-default'},
995+
e('div', {className: 'panel-heading'}, 'Forwarding'),
996+
e(
997+
'div',
998+
{className: 'panel-body'},
999+
e(
1000+
'label',
1001+
{className: 'checkbox-inline'},
1002+
e(
1003+
'input',
1004+
{
1005+
type: 'checkbox',
1006+
onChange: (e) => {
1007+
let newRoom = _.cloneDeep(this.state.room);
1008+
newRoom.selectActiveAudio = e.target.checked;
1009+
this.setState({room: newRoom});
1010+
},
1011+
checked: this.state.room.selectActiveAudio
1012+
}
1013+
),
1014+
'selectActiveAudio',
1015+
),
1016+
),
1017+
);
1018+
}
1019+
9911020
render() {
9921021
return e(
9931022
'div',
@@ -1021,6 +1050,7 @@ class RoomModal extends React.Component {
10211050
this.renderSip(),
10221051
this.renderTranscoding(),
10231052
this.renderNotifying(),
1053+
this.renderActiveAudioSelecting(),
10241054
e(
10251055
RoomView,
10261056
{

0 commit comments

Comments
 (0)