Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
matrix-react-sdk
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Matrix.org
matrix-react-sdk
Commits
78f2f7cf
Commit
78f2f7cf
authored
9 years ago
by
Kegan Dougal
Browse files
Options
Downloads
Patches
Plain Diff
Add in voip mute video/audio code. Needs dev js-sdk
parent
6baf405a
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/controllers/molecules/RoomHeader.js
+22
-0
22 additions, 0 deletions
src/controllers/molecules/RoomHeader.js
with
22 additions
and
0 deletions
src/controllers/molecules/RoomHeader.js
+
22
−
0
View file @
78f2f7cf
...
...
@@ -92,5 +92,27 @@ module.exports = {
// (e.g. conferences which will hangup the 1:1 room instead)
room_id
:
call
.
roomId
});
},
onMuteAudioClick
:
function
()
{
var
call
=
CallHandler
.
getCallForRoom
(
this
.
props
.
room
.
roomId
);
if
(
!
call
)
{
return
;
}
var
newState
=
!
call
.
isMicrophoneMuted
();
call
.
setMicrophoneMuted
(
newState
);
this
.
setState
({
audioMuted
:
newState
});
},
onMuteVideoClick
:
function
()
{
var
call
=
CallHandler
.
getCallForRoom
(
this
.
props
.
room
.
roomId
);
if
(
!
call
)
{
return
;
}
var
newState
=
!
call
.
isLocalVideoMuted
();
call
.
setLocalVideoMuted
(
newState
);
this
.
setState
({
videoMuted
:
newState
});
}
};
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment