Skip to content

Commit

Permalink
Added openvidu-call-v2compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
CSantosM committed Jun 26, 2024
1 parent be136aa commit a4b330b
Show file tree
Hide file tree
Showing 12 changed files with 856 additions and 579 deletions.
6 changes: 3 additions & 3 deletions openvidu-call-back-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<groupId>io.openvidu</groupId>
<artifactId>openvidu-call-back-java</artifactId>
<version>2.30.0</version>
<version>3.0.0-beta1</version>
<packaging>jar</packaging>

<name>openvidu-call-back-java</name>
Expand Down Expand Up @@ -32,8 +32,8 @@
</dependency>
<dependency>
<groupId>io.openvidu</groupId>
<artifactId>openvidu-java-client</artifactId>
<version>2.30.0</version>
<artifactId>openvidu-java-client-v2compatibility</artifactId>
<version>3.0.0-beta1</version>
</dependency>

<dependency>
Expand Down
18 changes: 9 additions & 9 deletions openvidu-call-back/package-lock.json

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

6 changes: 3 additions & 3 deletions openvidu-call-back/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"dotenv": "16.0.3",
"express": "4.18.2",
"http-proxy-middleware": "2.0.6",
"openvidu-node-client": "2.30.0"
"openvidu-node-client-v2compatibility": "^3.0.0-beta1"
},
"description": "OpenVidu Call Server",
"devDependencies": {
Expand Down Expand Up @@ -39,5 +39,5 @@
"build": "tsc",
"dev:start": "cross-env CALL_OPENVIDU_CERTTYPE=selfsigned nodemon src/app.ts"
},
"version": "2.30.0"
}
"version": "3.0.0-beta1"
}
3 changes: 2 additions & 1 deletion openvidu-call-back/src/controllers/RecordingController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { CALL_OPENVIDU_CERTTYPE, CALL_RECORDING, OPENVIDU_URL } from '../config'
import * as express from 'express';
import { Request, Response } from 'express';
import { createProxyMiddleware } from 'http-proxy-middleware';
import { Recording } from 'openvidu-node-client';
import { Recording } from 'openvidu-node-client-v2compatibility';
import { AuthService } from '../services/AuthService';
import { OpenViduService } from '../services/OpenViduService';
export const app = express.Router({
Expand Down Expand Up @@ -186,6 +186,7 @@ export const proxyGETRecording = createProxyMiddleware({
const isModeratorSessionValid = openviduService.isModeratorSessionValid(sessionId, req.cookies);
const isParticipantSessionValid = openviduService.isParticipantSessionValid(sessionId, req.cookies);

console.log(`Downloading recording ${recordingId}`);
if (!!sessionId && (isModeratorSessionValid || isParticipantSessionValid || isAdminSessionValid)) {
proxyReq.setHeader('Connection', 'keep-alive');
proxyReq.setHeader('Authorization', openviduService.getBasicAuth());
Expand Down
2 changes: 1 addition & 1 deletion openvidu-call-back/src/controllers/SessionController.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as crypto from 'crypto';
import * as express from 'express';
import { Request, Response } from 'express';
import { OpenViduRole, Session } from 'openvidu-node-client';
import { OpenViduRole, Session } from 'openvidu-node-client-v2compatibility';
import { CALL_BROADCAST, CALL_RECORDING } from '../config';
import { OpenViduService } from '../services/OpenViduService';

Expand Down
2 changes: 1 addition & 1 deletion openvidu-call-back/src/services/OpenViduService.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Connection, ConnectionProperties, OpenVidu, OpenViduRole, Recording, Session, SessionProperties } from 'openvidu-node-client';
import { Connection, ConnectionProperties, OpenVidu, OpenViduRole, Recording, Session, SessionProperties } from 'openvidu-node-client-v2compatibility';
import { OPENVIDU_SECRET, OPENVIDU_URL } from '../config';
import { RetryOptions } from '../utils';

Expand Down
13 changes: 0 additions & 13 deletions openvidu-call-front/.editorconfig

This file was deleted.

Loading

0 comments on commit a4b330b

Please sign in to comment.