Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
fairmeeting
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hosting
fairmeeting
Commits
aac7c92b
Commit
aac7c92b
authored
7 years ago
by
hristoterezov
Browse files
Options
Downloads
Patches
Plain Diff
feat(alwaysontop):Implement
parent
4dd37fb9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+1
-2
1 addition, 2 deletions
README.md
config.js
+2
-2
2 additions, 2 deletions
config.js
windows/jitsi-meet/index.html
+0
-5
0 additions, 5 deletions
windows/jitsi-meet/index.html
windows/jitsi-meet/render.js
+25
-30
25 additions, 30 deletions
windows/jitsi-meet/render.js
with
28 additions
and
39 deletions
README.md
+
1
−
2
View file @
aac7c92b
...
...
@@ -3,8 +3,7 @@ Jitsi Meet Electron
Electron application for
[
Jitsi Meet
](
https://github.com/jitsi/jitsi-meet
)
.
## Configuration
You can change the Jitsi Meet deployment url with the jitsiMeetURL property
from config.js
You can change the Jitsi Meet deployment domain with the jitsiMeetDomain property from config.js
## Building the sources
```
bash
...
...
This diff is collapsed.
Click to expand it.
config.js
+
2
−
2
View file @
aac7c92b
module
.
exports
=
{
/**
* The
URL
of the Jitsi Meet deployment that will be used.
* The
domain
of the Jitsi Meet deployment that will be used.
*/
jitsiMeet
URL
:
"
https://
meet.jit.si
/
"
jitsiMeet
Domain
:
"
meet.jit.si
"
};
This diff is collapsed.
Click to expand it.
windows/jitsi-meet/index.html
+
0
−
5
View file @
aac7c92b
...
...
@@ -10,11 +10,6 @@
body
{
-webkit-app-region
:
drag
}
iframe
{
width
:
100%
;
height
:
100%
;
border
:
0
none
;
}
</style>
</head>
<body>
...
...
This diff is collapsed.
Click to expand it.
windows/jitsi-meet/render.js
+
25
−
30
View file @
aac7c92b
/* global process */
const
utils
=
require
(
"
jitsi-meet-electron-utils
"
);
/* global process, JitsiMeetExternalAPI */
const
{
RemoteControl
,
setupScreenSharingForWindow
}
=
utils
;
const
config
=
require
(
"
../../config.js
"
);
}
=
require
(
"
jitsi-meet-electron-
utils
"
)
;
const
{
jitsiMeetDomain
}
=
require
(
"
../../config.js
"
);
/**
* The remote control instance.
* Loads a script from a specific source.
*
* @param src the source from the which the script is to be (down)loaded
* @param loadCallback on load callback function
* @param errorCallback callback to be called on error loading the script
*/
let
remoteControl
;
function
loadScript
(
src
,
loadCallback
=
()
=>
{},
errorCallback
=
console
.
error
)
{
const
script
=
document
.
createElement
(
'
script
'
);
/**
* Cteates the iframe that will load Jitsi Meet.
*/
let
iframe
=
document
.
createElement
(
'
iframe
'
);
iframe
.
src
=
process
.
env
.
JITSI_MEET_URL
||
config
.
jitsiMeetURL
;
iframe
.
allowFullscreen
=
true
;
iframe
.
onload
=
onload
;
document
.
body
.
appendChild
(
iframe
);
script
.
async
=
true
;
/**
* Handles loaded event for iframe:
* Enables screen sharing functionality to the iframe webpage.
* Initializes postis.
* Initializes remote control.
*/
function
onload
()
{
setupScreenSharingForWindow
(
iframe
.
contentWindow
);
iframe
.
contentWindow
.
onunload
=
onunload
;
remoteControl
=
new
RemoteControl
(
iframe
);
script
.
onload
=
loadCallback
;
script
.
onerror
=
errorCallback
;
script
.
src
=
src
;
document
.
head
.
appendChild
(
script
);
}
/**
* Clears the postis objects and remoteControl.
*/
function
onunload
()
{
remoteControl
.
dispose
();
}
loadScript
(
`https://
${
jitsiMeetDomain
}
/external_api.js`
,
()
=>
{
const
api
=
new
JitsiMeetExternalAPI
(
process
.
env
.
JITSI_MEET_DOMAIN
||
jitsiMeetDomain
);
const
iframe
=
api
.
getIFrame
();
setupScreenSharingForWindow
(
iframe
);
new
RemoteControl
(
iframe
);
});
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment