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
684c8c5d
Commit
684c8c5d
authored
Jan 13, 2021
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add user interface for filter selection.
parent
b24bd5c0
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
1 deletion
+40
-1
static/galene.css
static/galene.css
+6
-0
static/galene.html
static/galene.html
+7
-0
static/galene.js
static/galene.js
+27
-1
No files found.
static/galene.css
View file @
684c8c5d
...
...
@@ -751,6 +751,12 @@ h1 {
margin-right
:
0.4em
;
}
#filterselect
{
width
:
8em
;
text-align-last
:
center
;
margin-right
:
0.4em
;
}
#sendselect
{
width
:
8em
;
text-align-last
:
center
;
...
...
static/galene.html
View file @
684c8c5d
...
...
@@ -192,6 +192,13 @@
<fieldset>
<legend>
Other Settings
</legend>
<form
id=
"filterform"
>
<label
for=
"filterselect"
class=
"sidenav-label-first"
>
Filter:
</label>
<select
id=
"filterselect"
class=
"select select-inline"
>
<option
value=
""
selected
>
none
</option>
</select>
</form>
<form
id=
"sendform"
>
<label
for=
"sendselect"
class=
"sidenav-label-first"
>
Send:
</label>
<select
id=
"sendselect"
class=
"select select-inline"
>
...
...
static/galene.js
View file @
684c8c5d
...
...
@@ -203,6 +203,16 @@ function reflectSettings() {
}
audioselect
.
value
=
settings
.
audio
;
if
(
settings
.
hasOwnProperty
(
'
filter
'
))
{
getSelectElement
(
'
filterselect
'
).
value
=
settings
.
filter
;
}
else
{
let
s
=
getSelectElement
(
'
filterselect
'
).
value
;
if
(
s
)
{
settings
.
filter
=
s
;
store
=
true
;
}
}
if
(
settings
.
hasOwnProperty
(
'
request
'
))
{
getSelectElement
(
'
requestselect
'
).
value
=
settings
.
request
;
}
else
{
...
...
@@ -482,6 +492,13 @@ document.getElementById('stopvideobutton').onclick = function(e) {
resizePeers
();
};
getSelectElement
(
'
filterselect
'
).
onchange
=
async
function
(
e
)
{
if
(
!
(
this
instanceof
HTMLSelectElement
))
throw
new
Error
(
'
Unexpected type for this
'
);
updateSettings
({
filter
:
this
.
value
});
changePresentation
();
};
/** @returns {number} */
function
getMaxVideoThroughput
()
{
let
v
=
getSettings
().
send
;
...
...
@@ -941,6 +958,14 @@ let filters = {
},
};
function
addFilters
()
{
for
(
let
name
in
filters
)
{
let
f
=
filters
[
name
];
let
d
=
f
.
description
||
name
;
addSelectOption
(
getSelectElement
(
'
filterselect
'
),
d
,
name
);
}
}
function
isSafari
()
{
let
ua
=
navigator
.
userAgent
.
toLowerCase
();
return
ua
.
indexOf
(
'
safari
'
)
>=
0
&&
ua
.
indexOf
(
'
chrome
'
)
<
0
;
...
...
@@ -959,7 +984,7 @@ async function addLocalMedia(id) {
if
(
settings
.
filter
)
{
filter
=
filters
[
settings
.
filter
];
if
(
!
filter
)
{
displayWarning
(
`Unknown filter
${
filter
}
`
);
displayWarning
(
`Unknown filter
${
settings
.
filter
}
`
);
}
}
...
...
@@ -2603,6 +2628,7 @@ function start() {
document
.
getElementById
(
'
title
'
).
textContent
=
title
;
}
addFilters
();
setMediaChoices
(
false
).
then
(
e
=>
reflectSettings
());
fillLogin
();
...
...
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