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
6dc1d724
Commit
6dc1d724
authored
Aug 24, 2020
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Type global variables in sfu.js.
parent
fba0dded
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
static/sfu.js
static/sfu.js
+11
-0
No files found.
static/sfu.js
View file @
6dc1d724
...
@@ -143,6 +143,7 @@ function setButtonsVisibility() {
...
@@ -143,6 +143,7 @@ function setButtonsVisibility() {
setVisibility
(
'
mediaoptions
'
,
permissions
.
present
);
setVisibility
(
'
mediaoptions
'
,
permissions
.
present
);
}
}
/** @type {boolean} */
let
localMute
=
false
;
let
localMute
=
false
;
function
toggleLocalMute
()
{
function
toggleLocalMute
()
{
...
@@ -237,6 +238,7 @@ function addSelectOption(select, label, value) {
...
@@ -237,6 +238,7 @@ function addSelectOption(select, label, value) {
// media names might not be available before we call getDisplayMedia. So
// media names might not be available before we call getDisplayMedia. So
// we call this lazily.
// we call this lazily.
/** @type {boolean} */
let
mediaChoicesDone
=
false
;
let
mediaChoicesDone
=
false
;
async
function
setMediaChoices
()
{
async
function
setMediaChoices
()
{
...
@@ -546,6 +548,7 @@ function resizePeers() {
...
@@ -546,6 +548,7 @@ function resizePeers() {
`repeat(
${
columns
}
, 1fr)`
;
`repeat(
${
columns
}
, 1fr)`
;
}
}
/** @type{Object.<string,string>} */
let
users
=
{};
let
users
=
{};
/**
/**
...
@@ -669,6 +672,13 @@ function formatLines(lines) {
...
@@ -669,6 +672,13 @@ function formatLines(lines) {
return
elt
;
return
elt
;
}
}
/**
* @typedef {Object} lastMessage
* @property {string} [nick]
* @property {string} [peerId]
*/
/** @type {lastMessage} */
let
lastMessage
=
{};
let
lastMessage
=
{};
function
addToChatbox
(
peerId
,
nick
,
kind
,
message
){
function
addToChatbox
(
peerId
,
nick
,
kind
,
message
){
...
@@ -874,6 +884,7 @@ function chatResizer(e) {
...
@@ -874,6 +884,7 @@ function chatResizer(e) {
document
.
getElementById
(
'
resizer
'
).
addEventListener
(
'
mousedown
'
,
chatResizer
,
false
);
document
.
getElementById
(
'
resizer
'
).
addEventListener
(
'
mousedown
'
,
chatResizer
,
false
);
/** @type {number} */
let
errorTimeout
=
null
;
let
errorTimeout
=
null
;
function
setErrorTimeout
(
ms
)
{
function
setErrorTimeout
(
ms
)
{
...
...
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