Skip to content

Commit

Permalink
Add ActiveAudiSelecting option in doc and sample console (open-webrtc…
Browse files Browse the repository at this point in the history
  • Loading branch information
starwarfan authored Dec 24, 2020
1 parent b166b03 commit 28fc51d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/servermd/RESTAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ Data Model:<br>
mediaOut: object(MediaOut), // the output media constraints
transcoding: object(Transcoding), // the transcoding control
notifying: object(Notifying), // notification control
selectActiveAudio: boolean, // select 3 most active audio streams for the room
sip: object(Sip) // SIP configuration
}

Expand Down
30 changes: 30 additions & 0 deletions source/management_console/public/js/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -988,6 +988,35 @@ class RoomModal extends React.Component {
);
}

renderActiveAudioSelecting() {
return e(
'div',
{className: 'panel panel-default'},
e('div', {className: 'panel-heading'}, 'Forwarding'),
e(
'div',
{className: 'panel-body'},
e(
'label',
{className: 'checkbox-inline'},
e(
'input',
{
type: 'checkbox',
onChange: (e) => {
let newRoom = _.cloneDeep(this.state.room);
newRoom.selectActiveAudio = e.target.checked;
this.setState({room: newRoom});
},
checked: this.state.room.selectActiveAudio
}
),
'selectActiveAudio',
),
),
);
}

render() {
return e(
'div',
Expand Down Expand Up @@ -1021,6 +1050,7 @@ class RoomModal extends React.Component {
this.renderSip(),
this.renderTranscoding(),
this.renderNotifying(),
this.renderActiveAudioSelecting(),
e(
RoomView,
{
Expand Down

0 comments on commit 28fc51d

Please sign in to comment.