Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sfu
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
Alain Takoudjou
sfu
Commits
6a4784da
Commit
6a4784da
authored
Sep 23, 2020
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hide share button if getDisplayMedia doesn't exist.
parent
2e63c0f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
static/sfu.css
static/sfu.css
+0
-4
static/sfu.js
static/sfu.js
+4
-1
No files found.
static/sfu.css
View file @
6a4784da
...
@@ -1013,10 +1013,6 @@ header .collapse {
...
@@ -1013,10 +1013,6 @@ header .collapse {
border-right
:
none
;
border-right
:
none
;
}
}
#sharebutton
{
display
:
none
;
}
.dropdown-content
{
.dropdown-content
{
margin-top
:
10px
;
margin-top
:
10px
;
}
}
...
...
static/sfu.js
View file @
6a4784da
...
@@ -376,11 +376,14 @@ function setButtonsVisibility() {
...
@@ -376,11 +376,14 @@ function setButtonsVisibility() {
let
permissions
=
serverConnection
.
permissions
;
let
permissions
=
serverConnection
.
permissions
;
let
local
=
!!
findUpMedia
(
'
local
'
);
let
local
=
!!
findUpMedia
(
'
local
'
);
let
share
=
!!
findUpMedia
(
'
screenshare
'
)
let
share
=
!!
findUpMedia
(
'
screenshare
'
)
// don't allow multiple presentations
// don't allow multiple presentations
setVisibility
(
'
presentbutton
'
,
permissions
.
present
&&
!
local
);
setVisibility
(
'
presentbutton
'
,
permissions
.
present
&&
!
local
);
setVisibility
(
'
unpresentbutton
'
,
local
);
setVisibility
(
'
unpresentbutton
'
,
local
);
// allow multiple shared documents
// allow multiple shared documents
setVisibility
(
'
sharebutton
'
,
permissions
.
present
);
setVisibility
(
'
sharebutton
'
,
permissions
.
present
&&
(
'
getDisplayMedia
'
in
navigator
.
mediaDevices
))
setVisibility
(
'
unsharebutton
'
,
share
);
setVisibility
(
'
unsharebutton
'
,
share
);
setVisibility
(
'
mediaoptions
'
,
permissions
.
present
);
setVisibility
(
'
mediaoptions
'
,
permissions
.
present
);
...
...
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