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
2c17157e
Commit
2c17157e
authored
Nov 24, 2020
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement automatic enabling of camera.
parent
4c976293
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
1 deletion
+20
-1
static/sfu.css
static/sfu.css
+1
-1
static/sfu.html
static/sfu.html
+5
-0
static/sfu.js
static/sfu.js
+14
-0
No files found.
static/sfu.css
View file @
2c17157e
...
...
@@ -456,7 +456,7 @@ textarea.form-reply {
position
:
absolute
;
top
:
15%
;
left
:
25%
;
width
:
21
em
;
width
:
30
em
;
padding
:
2em
;
}
...
...
static/sfu.html
View file @
2c17157e
...
...
@@ -127,6 +127,11 @@
<label
for=
"password"
>
Password:
</label>
<input
id=
"password"
type=
"password"
name=
"password"
autocomplete=
"current-password"
class=
"form-control"
/>
<label>
Present:
</label>
<input
id=
"presentoff"
type=
"radio"
name=
"presentradio"
value=
""
checked
/>
<label
for=
"presentoff"
>
nothing
</label>
<input
id=
"presentboth"
type=
"radio"
name=
"presentradio"
value=
"both"
/>
<label
for=
"presentoff"
>
camera and mike
</label>
<div
class=
"clear"
></div>
<input
id=
"connectbutton"
type=
"submit"
class=
"btn btn-blue"
value=
"Connect"
/>
</form>
...
...
static/sfu.js
View file @
2c17157e
...
...
@@ -272,6 +272,7 @@ function setConnected(connected) {
userpass
?
userpass
.
username
:
''
;
getInputElement
(
'
password
'
).
value
=
userpass
?
userpass
.
password
:
''
;
getInputElement
(
'
presentoff
'
).
checked
=
true
;
statspan
.
textContent
=
'
Disconnected
'
;
statspan
.
classList
.
remove
(
'
connected
'
);
statspan
.
classList
.
add
(
'
disconnected
'
);
...
...
@@ -1937,6 +1938,19 @@ document.getElementById('userform').onsubmit = async function(e) {
}
finally
{
connecting
=
false
;
}
let
presentboth
=
getInputElement
(
'
presentboth
'
).
checked
;
if
(
presentboth
)
{
let
button
=
getButtonElement
(
'
presentbutton
'
);
button
.
disabled
=
true
;
try
{
let
id
=
findUpMedia
(
'
local
'
);
if
(
!
id
)
await
addLocalMedia
();
}
finally
{
button
.
disabled
=
false
;
}
}
};
document
.
getElementById
(
'
disconnectbutton
'
).
onclick
=
function
(
e
)
{
...
...
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