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
a845e9f7
Commit
a845e9f7
authored
Jul 14, 2023
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Special-case screenshare in setSendParameters.
This avoids restarting the stream when changing simulcast settings.
parent
5722270c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
static/galene.js
static/galene.js
+4
-2
No files found.
static/galene.js
View file @
a845e9f7
...
...
@@ -918,6 +918,8 @@ function newUpStream(localId) {
async
function
setSendParameters
(
c
,
bps
,
simulcast
)
{
if
(
!
c
.
up
)
throw
new
Error
(
'
Setting throughput of down stream
'
);
if
(
c
.
label
===
'
screenshare
'
)
simulcast
=
false
;
let
senders
=
c
.
pc
.
getSenders
();
for
(
let
i
=
0
;
i
<
senders
.
length
;
i
++
)
{
let
s
=
senders
[
i
];
...
...
@@ -1250,12 +1252,12 @@ function setUpStream(c, stream) {
};
let
encodings
=
[];
let
simulcast
=
doSimulcast
();
let
simulcast
=
c
.
label
!==
'
screenshare
'
&&
doSimulcast
();
if
(
t
.
kind
===
'
video
'
)
{
let
bps
=
getMaxVideoThroughput
();
// Firefox doesn't like us setting the RID if we're not
// simulcasting.
if
(
simulcast
&&
c
.
label
!==
'
screenshare
'
)
{
if
(
simulcast
)
{
encodings
.
push
({
rid
:
'
h
'
,
maxBitrate
:
bps
||
unlimitedRate
,
...
...
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