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
3b988b0e
Commit
3b988b0e
authored
9 years ago
by
Matthew Hodgson
Browse files
Options
Downloads
Patches
Plain Diff
set up remoteAudioElement
parent
98ea3525
Loading
Loading
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/controllers/molecules/voip/CallView.js
+3
-1
3 additions, 1 deletion
src/controllers/molecules/voip/CallView.js
with
3 additions
and
1 deletion
src/controllers/molecules/voip/CallView.js
+
3
−
1
View file @
3b988b0e
...
@@ -54,8 +54,10 @@ module.exports = {
...
@@ -54,8 +54,10 @@ module.exports = {
var
call
=
CallHandler
.
getCall
(
roomId
);
var
call
=
CallHandler
.
getCall
(
roomId
);
if
(
call
)
{
if
(
call
)
{
call
.
setLocalVideoElement
(
this
.
getVideoView
().
getLocalVideoElement
());
call
.
setLocalVideoElement
(
this
.
getVideoView
().
getLocalVideoElement
());
// N.B. the remote video element is used for playback for audio for voice calls
call
.
setRemoteVideoElement
(
this
.
getVideoView
().
getRemoteVideoElement
());
call
.
setRemoteVideoElement
(
this
.
getVideoView
().
getRemoteVideoElement
());
// give a separate element for audio stream playback - both for voice calls
// and for the voice stream of screen captures
call
.
setRemoteAudioElement
(
this
.
getVideoView
().
getRemoteAudioElement
());
}
}
if
(
call
&&
call
.
type
===
"
video
"
&&
call
.
state
!==
'
ended
'
)
{
if
(
call
&&
call
.
type
===
"
video
"
&&
call
.
state
!==
'
ended
'
)
{
this
.
getVideoView
().
getLocalVideoElement
().
style
.
display
=
"
initial
"
;
this
.
getVideoView
().
getLocalVideoElement
().
style
.
display
=
"
initial
"
;
...
...
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