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
de634491
Commit
de634491
authored
Mar 21, 2022
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More paranoid match for Firefox bandwidth workaround.
parent
a698011a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
static/galene.js
static/galene.js
+13
-1
No files found.
static/galene.js
View file @
de634491
...
...
@@ -1220,8 +1220,20 @@ function setUpStream(c, stream) {
});
// Firefox workaround
function
match
(
a
,
b
)
{
if
(
!
a
||
!
b
)
return
false
;
if
(
a
.
length
!==
b
.
length
)
return
false
;
for
(
let
i
=
0
;
i
<
a
.
length
;
i
++
)
{
if
(
a
.
maxBitrate
!==
b
.
maxBitrate
)
return
false
;
}
return
true
;
}
let
p
=
tr
.
sender
.
getParameters
();
if
(
!
p
.
encodings
||
p
.
encodings
.
length
!=
encodings
.
length
)
{
if
(
!
p
||
!
match
(
p
.
encodings
,
encodings
)
)
{
p
.
encodings
=
encodings
;
tr
.
sender
.
setParameters
(
p
);
}
...
...
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