Skip to content
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

36 changes: 0 additions & 36 deletions .eslintrc.js

This file was deleted.

32 changes: 8 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ The remote control utility requires iframe HTML Element that will load Jitsi Mee
In the **render** electron process of the window where Jitsi Meet is displayed:

```Javascript
const {
RemoteControl
} = require("@jitsi/electron-sdk");
import { RemoteControl } from "@jitsi/electron-sdk";

// iframe - the Jitsi Meet iframe
const remoteControl = new RemoteControl(iframe);
Expand All @@ -41,9 +39,7 @@ NOTE: `dispose` method will be called automatically when the Jitsi Meet iframe u
In the **main** electron process:

```Javascript
const {
RemoteControlMain
} = require("@jitsi/electron-sdk");
import { RemoteControlMain } from "@jitsi/electron-sdk";

// jitsiMeetWindow - The BrowserWindow instance of the window where Jitsi Meet is loaded.
const remoteControl = new RemoteControlMain(mainWindow);
Expand All @@ -59,19 +55,15 @@ The screen sharing utility requires iframe HTML Element that will load Jitsi Mee
In the **render** electron process of the window where Jitsi Meet is displayed:

```Javascript
const {
setupScreenSharingRender
} = require("@jitsi/electron-sdk");
import { setupScreenSharingRender } from "@jitsi/electron-sdk";

// api - The Jitsi Meet iframe api object.
setupScreenSharingRender(api);
```
In the **main** electron process:

```Javascript
const {
setupScreenSharingMain
} = require("@jitsi/electron-sdk");
import { setupScreenSharingMain } from "@jitsi/electron-sdk";

// jitsiMeetWindow - The BrowserWindow instance of the window where Jitsi Meet is loaded.
// appName - Application name which will be displayed inside the content sharing tracking window
Expand All @@ -93,9 +85,7 @@ Displays a small window with the current active speaker video when the main Jits

In the **main** electron process:
```Javascript
const {
setupAlwaysOnTopMain
} = require("@jitsi/electron-sdk");
import { setupAlwaysOnTopMain } from "@jitsi/electron-sdk";

// jitsiMeetWindow - The BrowserWindow instance
// of the window where Jitsi Meet is loaded.
Expand All @@ -104,9 +94,7 @@ setupAlwaysOnTopMain(jitsiMeetWindow);

In the **render** electron process of the window where Jitsi Meet is displayed:
```Javascript
const {
setupAlwaysOnTopRender
} = require("@jitsi/electron-sdk");
import { setupAlwaysOnTopRender } from "@jitsi/electron-sdk";

const api = new JitsiMeetExternalAPI(...);
const alwaysOnTop = setupAlwaysOnTopRender(api);
Expand All @@ -128,9 +116,7 @@ Provides a way to query electron for system idle and receive power monitor event
**enable power monitor:**
In the **main** electron process:
```Javascript
const {
setupPowerMonitorMain
} = require("@jitsi/electron-sdk");
import { setupPowerMonitorMain } from "@jitsi/electron-sdk";

// jitsiMeetWindow - The BrowserWindow instance
// of the window where Jitsi Meet is loaded.
Expand All @@ -139,9 +125,7 @@ setupPowerMonitorMain(jitsiMeetWindow);

In the **render** electron process of the window where Jitsi Meet is displayed:
```Javascript
const {
setupPowerMonitorRender
} = require("@jitsi/electron-sdk");
import { setupPowerMonitorRender } from "@jitsi/electron-sdk";

const api = new JitsiMeetExternalAPI(...);
setupPowerMonitorRender(api);
Expand Down
68 changes: 36 additions & 32 deletions alwaysontop/constants.js
Original file line number Diff line number Diff line change
@@ -1,33 +1,37 @@
module.exports = {
AOT_WINDOW_NAME: 'AlwaysOnTop',
ASPECT_RATIO: 16 / 9,
EVENTS: {
MOVE: 'aot-move',
UPDATE_STATE: 'aot-update-state',
},
EXTERNAL_EVENTS: {
ALWAYSONTOP_DISMISSED: 'dismissed',
ALWAYSONTOP_WILL_CLOSE: 'will-close',
ALWAYSONTOP_DOUBLE_CLICK: 'double-click'
},
EVENTS_CHANNEL: 'aot-events-channel',
SIZE: {
width: 320,
height: 180
},
STATES: {
CLOSE: 'aot-close',
CONFERENCE_JOINED: 'aot-conference-joined',
DISMISS: 'aot-dismiss',
HIDE: 'aot-hide',
OPEN: 'aot-open',
SHOW: 'aot-show',
SHOW_MAIN_WINDOW: 'aot-main-window-show',
IS_NOT_INTERSECTING: 'is-not-intersecting',
IS_INTERSECTING: 'is-intersecting'
},
STORAGE: {
AOT_X: 'aot-x',
AOT_Y: 'aot-y'
}
export const AOT_WINDOW_NAME = 'AlwaysOnTop';
export const ASPECT_RATIO = 16 / 9;

export const EVENTS = {
MOVE: 'aot-move',
UPDATE_STATE: 'aot-update-state',
};

export const EXTERNAL_EVENTS = {
ALWAYSONTOP_DISMISSED: 'dismissed',
ALWAYSONTOP_WILL_CLOSE: 'will-close',
ALWAYSONTOP_DOUBLE_CLICK: 'double-click'
};

export const EVENTS_CHANNEL = 'aot-events-channel';

export const SIZE = {
width: 320,
height: 180
};

export const STATES = {
CLOSE: 'aot-close',
CONFERENCE_JOINED: 'aot-conference-joined',
DISMISS: 'aot-dismiss',
HIDE: 'aot-hide',
OPEN: 'aot-open',
SHOW: 'aot-show',
SHOW_MAIN_WINDOW: 'aot-main-window-show',
IS_NOT_INTERSECTING: 'is-not-intersecting',
IS_INTERSECTING: 'is-intersecting'
};

export const STORAGE = {
AOT_X: 'aot-x',
AOT_Y: 'aot-y'
};
8 changes: 4 additions & 4 deletions alwaysontop/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const setupAlwaysOnTopRender = require('./render');
const { cleanupAlwaysOnTopMain, setupAlwaysOnTopMain } = require('./main');
import setupAlwaysOnTopRender from './render/index.js';
import { setupAlwaysOnTopMain, cleanupAlwaysOnTopMain } from './main/index.js';

module.exports = {
export {
cleanupAlwaysOnTopMain,
setupAlwaysOnTopMain,
setupAlwaysOnTopRender
};
};
4 changes: 2 additions & 2 deletions alwaysontop/main/config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { SIZE } = require("../constants");
import { SIZE } from '../constants.js';

module.exports = {
export default {
backgroundColor: 'transparent',
minWidth: SIZE.width,
minHeight: SIZE.height,
Expand Down
Loading