Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# The build artifacts of the lib-jiti-meet project.
lib-jitsi-meet.*
lib-meet.*
dist/
types/

Expand Down
6 changes: 3 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
lib-jitsi-meet.min.js -text -diff
lib-jitsi-meet.js -text -diff
lib-jitsi-meet.js.map -text -diff
lib-meet.min.js -text -diff
lib-meet.js -text -diff
lib-meet.js.map -text -diff
text eol=lf
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ node_modules
.*.tmp
deploy-local.sh
.remote-sync.json
lib-jitsi-meet.*
lib-meet.*
npm-*.log
.sync-config.cson
.jshintignore
Expand Down
39 changes: 15 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# Jitsi Meet API library
# Meet library

You can use Jitsi Meet API to create Jitsi Meet video conferences with a custom GUI.

## Installation

- [Installation guide](https://jitsi.github.io/handbook/docs/dev-guide/dev-guide-ljm-api/#installation)
- [Checkout the example](https://github.com/jitsi/ljm-getting-started)
This is a customized fork of lib-jitsi-meet library for Internext Meet <https://meet.internxt.com/>.

## Building the sources

Expand All @@ -24,7 +19,7 @@ and to run unit tests:
```
npm test
```
if you need to rebuild lib-jitsi-meet.min.js
if you need to rebuild lib-meet.min.js
```
npm run build
```
Expand All @@ -33,13 +28,9 @@ Both linting and units will also be done by a pre-commit hook.

## How to run and test the library locally:

To test this library, you will need <https://github.com/jitsi/jitsi-meet>. There is a pretty good tutorial in jitsi docs <https://jitsi.github.io/handbook/docs/dev-guide/dev-guide-web-jitsi-meet>.

Here is a resume of how you can run your own environment:

1. Create a folder called meet or whatever you want to call this project.
2. Clone this repository.
3. Run `cd lib-jitsi-meet` to move to the folder.
3. Run `cd lib-meet` to move to the folder.
4. Run the commands below to create a link to your local library and build it.

```
Expand All @@ -49,16 +40,16 @@ Here is a resume of how you can run your own environment:
```

5. Run `cd ..`
6. Go to <https://github.com/jitsi/jitsi-meet> and clone the repository.
7. Run `cd jitsi-meet`
8. Run `npm link lib-jitsi-meet`
6. Go to <https://github.com/internxt/meet-web/> and clone the repository.
7. Run `cd meet-web`
8. Run `npm link lib-meet`
```
npm link lib-jitsi-meet
npm install
make dev
npm link lib-meet
yarn
yarn start
```

If you want to make changes to only lib-jitsi-meet, you need to run `npm run build` and restart the `make dev` process. Otherwise, the changes you made to the library are not going to be shown in the app.
If you want to make changes to only lib-meet, you need to run `npm run build` and restart the `yarn start` process. Otherwise, the changes you made to the library are not going to be shown in the app.

## Publishing to releases

Expand All @@ -75,20 +66,20 @@ Update the `package.json "version"` field to the next release number (e.g. from
### Step 2: Generate the npm package
```
npm install # ensure dependencies are up to date
npm pack # creates a .tgz bundle (e.g. lib-jitsi-meet-1.2.4.tgz)
npm pack # creates a .tgz bundle (e.g. lib-meet-1.2.4.tgz)
```
### Step 3: Generate the npm package
In your draft release on GitHub, upload the generated lib-jitsi-meet-1.2.4.tgz under Attach binaries by dropping them here or selecting them.
In your draft release on GitHub, upload the generated lib-meet-1.2.4.tgz under Attach binaries by dropping them here or selecting them.

### Step 5: Publish the release
With the .tgz attached, click Publish release.

### Step 6: Update downstream dependency
In the internxt-meet repo’s package.json, change the lib-jitsi-meet entry to the new tarball URL:
In the internxt-meet repo’s package.json, change the lib-meet entry to the new tarball URL:

```json
"dependencies": {
"lib-jitsi-meet": "https://github.com/internxt/lib-jitsi-meet/releases/download/v1.2.4/lib-jitsi-meet-1.2.4.tgz",
"lib-meet": "https://github.com/internxt/lib-meet/releases/download/v1.2.4/lib-meet-1.2.4.tgz",
// … other deps …
}
```
4 changes: 2 additions & 2 deletions modules/e2ee-internxt/E2EEContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default class E2EEcontext extends Listenable {

private _initializeWorker(): Worker {
this.scriptEl = document.querySelector<HTMLScriptElement>(
'script[src*="lib-jitsi-meet"]',
'script[src*="lib-meet"]',
);
let baseUrl = '';

Expand All @@ -44,7 +44,7 @@ export default class E2EEcontext extends Listenable {
baseUrl = `${this.scriptEl.src.substring(0, idx)}/`;
}

let workerUrl = `${baseUrl}lib-jitsi-meet.e2ee-worker.js`;
let workerUrl = `${baseUrl}lib-meet.e2ee-worker.js`;

if (baseUrl && baseUrl !== '/') {
const workerBlob = new Blob([ `importScripts("${workerUrl}");` ], {
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@
"description": "JS library for accessing Jitsi server side deployments",
"repository": {
"type": "git",
"url": "git://github.com/jitsi/lib-meet"
"url": "git://github.com/internxt/lib-meet"
},
"keywords": [
"jingle",
"webrtc",
"xmpp",
"browser",
"jitsi"
"browser"
],
"author": "",
"readmeFilename": "README.md",
Expand All @@ -31,7 +30,7 @@
"emoji-regex": "10.4.0",
"jwt-decode": "4.0.0",
"lodash-es": "4.18.1",
"onnxruntime-web": "^1.23.0",
"onnxruntime-web": "=1.23.0",
"sdp-transform": "2.3.0",
"strophe.js": "https://github.com/jitsi/strophejs/releases/download/v1.5-jitsi-3/strophe.js-1.5.0.tgz",
"uuid": "14.0.0",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"**/*.spec.ts",
"*.conf*.js",
"index.js",
"lib-jitsi-meet.*.js",
"lib-meet.*.js",
"webpack*.js",
],
"typedocOptions": {
Expand Down
4 changes: 2 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = (_env, argv) => {
return [
{ ...config,
entry: {
'lib-jitsi-meet': './index.js'
'lib-meet': './index.js'
},
output: { ...config.output,
library: 'JitsiMeetJS',
Expand All @@ -28,7 +28,7 @@ module.exports = (_env, argv) => {
minimize: false
},
output: {
filename: 'lib-jitsi-meet.e2ee-worker.js',
filename: 'lib-meet.e2ee-worker.js',
path: path.join(process.cwd(), 'dist', 'umd')
},
resolve: config.resolve
Expand Down
Loading