Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
galene
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
galene
Commits
485b0c1b
Commit
485b0c1b
authored
May 10, 2021
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable simulcast on Firefox.
parent
be4ae56c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
static/galene.js
static/galene.js
+12
-2
No files found.
static/galene.js
View file @
485b0c1b
...
...
@@ -1165,8 +1165,8 @@ function setUpStream(c, stream) {
};
let
encodings
=
[];
let
simulcast
=
doSimulcast
();
if
(
t
.
kind
===
'
video
'
)
{
let
simulcast
=
doSimulcast
();
let
bps
=
getMaxVideoThroughput
();
encodings
.
push
({
rid
:
'
h
'
,
...
...
@@ -1179,11 +1179,21 @@ function setUpStream(c, stream) {
maxBitrate
:
simulcastRate
,
});
}
c
.
pc
.
addTransceiver
(
t
,
{
let
tr
=
c
.
pc
.
addTransceiver
(
t
,
{
direction
:
'
sendonly
'
,
streams
:
[
stream
],
sendEncodings
:
encodings
,
});
// Disable simulcast on Firefox
if
(
t
.
kind
===
'
video
'
)
{
let
p
=
tr
.
sender
.
getParameters
();
if
(
!
p
.
encodings
&&
simulcast
)
{
updateSettings
({
simulcast
:
'
off
'
});
reflectSettings
();
p
.
encodings
=
[
encodings
[
0
]];
tr
.
sender
.
setParameters
(
p
);
}
}
}
// c.stream might be different from stream if there's a filter
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment