Skip to content

Commit

Permalink
Merge pull request #24 from mynaparrot/auto_recording
Browse files Browse the repository at this point in the history
Auto recording feature
  • Loading branch information
jibon57 authored Nov 20, 2022
2 parents bd43c2b + 4378bda commit e0e6171
Show file tree
Hide file tree
Showing 9 changed files with 57 additions and 19 deletions.
Binary file added .DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion deno_dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Plug-N-Meet SDK for Deno. You can use this SDK to make API requests to the Plug-
You can change it according to latest version

```js
import { PlugNmeet } from 'https://deno.land/x/plugnmeet@v1.0.1/mod.ts';
import { PlugNmeet } from 'https://deno.land/x/plugnmeet@v1.2.0/mod.ts';

const pnm = new PlugNmeet(
'http://localhost:8080',
Expand Down
7 changes: 6 additions & 1 deletion deno_dist/examples/quickJoin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,16 @@ const roomInfo = {
allow_webcams: true,
mute_on_start: false,
allow_screen_share: true,
allow_recording: true,
allow_rtmp: true,
admin_only_webcams: false,
allow_view_other_webcams: true,
allow_view_other_users_list: true,
recording_features: {
is_allow: true,
is_allow_cloud: true,
is_allow_local: true,
enable_auto_cloud_recording: false,
},
chat_features: {
allow_chat: true,
allow_file_upload: true,
Expand Down
9 changes: 8 additions & 1 deletion deno_dist/types/createRoom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ export type RoomFeaturesParams = {
allow_webcams: boolean;
mute_on_start: boolean;
allow_screen_share: boolean;
allow_recording: boolean;
allow_rtmp: boolean;
admin_only_webcams: boolean;
allow_view_other_webcams: boolean;
allow_view_other_users_list: boolean;
recording_features: RecordingFeaturesParams;
chat_features: ChatFeaturesParams;
shared_note_pad_features?: SharedNotePadFeaturesParams;
whiteboard_features?: WhiteboardFeaturesParams;
Expand All @@ -30,6 +30,13 @@ export type RoomFeaturesParams = {
breakout_room_features?: BreakoutRoomFeatures;
};

export type RecordingFeaturesParams = {
is_allow: boolean;
is_allow_cloud: boolean;
is_allow_local: boolean;
enable_auto_cloud_recording: boolean;
};

export type ChatFeaturesParams = {
allow_chat: boolean;
allow_file_upload: boolean;
Expand Down
7 changes: 6 additions & 1 deletion examples/quickJoin.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,16 @@ const plugNmeet = require('../dist').PlugNmeet;
allow_webcams: true,
mute_on_start: false,
allow_screen_share: true,
allow_recording: true,
allow_rtmp: true,
admin_only_webcams: false,
allow_view_other_webcams: true,
allow_view_other_users_list: true,
recording_features: {
is_allow: true,
is_allow_cloud: true,
is_allow_local: true,
enable_auto_cloud_recording: false,
},
chat_features: {
allow_chat: true,
allow_file_upload: true,
Expand Down
30 changes: 19 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,34 @@
{
"name": "plugnmeet-sdk-js",
"version": "1.0.2",
"version": "1.2.0",
"type": "module",
"description": "plugNmeet JS SDK",
"main": "src/index.ts",
"author": "Jibon L. Costa",
"license": "MIT",
"exports": {
".": "./index.js"
},
"typesVersions": {
"*": {
"index.d.ts": ["index.d.ts"]
}
},
"scripts": {
"start": "rm -rf ./dist && concurrently -c \"red,green\" --kill-others \"tsc --watch -p . --outDir ./dist && esw -w --ext '.ts','.js' --fix\"",
"build": "rm -rf ./dist && tsc -p . --outDir ./dist",
"build-docs": "typedoc --sort source-order"
},
"author": "Jibon L. Costa",
"license": "MIT",
"devDependencies": {
"@types/node": "18.7.18",
"@typescript-eslint/eslint-plugin": "5.40.1",
"@typescript-eslint/parser": "5.40.1",
"concurrently": "7.4.0",
"eslint": "8.25.0",
"@types/node": "18.11.9",
"@typescript-eslint/eslint-plugin": "5.43.0",
"@typescript-eslint/parser": "5.43.0",
"concurrently": "7.5.0",
"eslint": "8.28.0",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-prettier": "4.2.1",
"eslint-watch": "8.0.0",
"prettier": "2.7.1",
"typedoc": "0.23.20",
"typescript": "4.8.4"
"typedoc": "0.23.21",
"typescript": "4.9.3"
}
}
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export {
CreateRoomResponseRoomInfo,
LockSettingsParams,
RoomFeaturesParams,
RecordingFeaturesParams,
ChatFeaturesParams,
SharedNotePadFeaturesParams,
WhiteboardFeaturesParams,
Expand Down
9 changes: 8 additions & 1 deletion src/types/createRoom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ export type RoomFeaturesParams = {
allow_webcams: boolean;
mute_on_start: boolean;
allow_screen_share: boolean;
allow_recording: boolean;
allow_rtmp: boolean;
admin_only_webcams: boolean;
allow_view_other_webcams: boolean;
allow_view_other_users_list: boolean;
recording_features: RecordingFeaturesParams;
chat_features: ChatFeaturesParams;
shared_note_pad_features?: SharedNotePadFeaturesParams;
whiteboard_features?: WhiteboardFeaturesParams;
Expand All @@ -30,6 +30,13 @@ export type RoomFeaturesParams = {
breakout_room_features?: BreakoutRoomFeatures;
};

export type RecordingFeaturesParams = {
is_allow: boolean;
is_allow_cloud: boolean;
is_allow_local: boolean;
enable_auto_cloud_recording: boolean;
};

export type ChatFeaturesParams = {
allow_chat: boolean;
allow_file_upload: boolean;
Expand Down
11 changes: 8 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
{
"compilerOptions": {
"target": "es2015",
"module": "commonjs",
"target": "ES2020",
"module": "ES2020",
"outDir": "dist",
"lib": [
"es2020", "DOM"
],
"declaration": true,
"sourceMap": false,
"sourceMap": true,
"strict": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"moduleResolution": "Node",
"skipLibCheck": true /* Skip type checking of declaration files. */,
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
},
Expand Down

0 comments on commit e0e6171

Please sign in to comment.