@capgo/capacitor-screen-recorder 7.1.2 → 7.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -19,14 +19,29 @@ npx cap sync
19
19
  add NSPhotoLibraryUsageDescription in your info.plist
20
20
 
21
21
  ## Android
22
- increase project's minSdk version to 23, it's required by the dependency scrcast
22
+ increase project's minSdk version to 23, it's required by the dependency HBRecorder
23
23
 
24
- Add this permissions in your `AndroidManifest.xml`
24
+ Add these permissions in your `AndroidManifest.xml`:
25
25
  ```xml
26
- <uses-permission android:name="android.permission.CAPTURE_VIDEO_OUTPUT" />
27
- <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" />
26
+ <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
27
+ <uses-permission android:name="android.permission.WRITE_INTERNAL_STORAGE" />
28
+ <uses-permission android:name="android.permission.RECORD_AUDIO" />
29
+ <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
30
+ <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PROJECTION" />
28
31
  ```
29
32
 
33
+ ### Add JitPack Repository
34
+ Add JitPack repository to your Android app's build.gradle (android/app/build.gradle):
35
+
36
+ ```gradle
37
+ allprojects {
38
+ repositories {
39
+ google()
40
+ mavenCentral()
41
+ maven { url 'https://jitpack.io/' }
42
+ }
43
+ }
44
+ ```
30
45
 
31
46
  ### Variables
32
47
 
@@ -57,7 +72,7 @@ No configuration required for this plugin.
57
72
 
58
73
  <docgen-index>
59
74
 
60
- * [`start()`](#start)
75
+ * [`start(...)`](#start)
61
76
  * [`stop()`](#stop)
62
77
 
63
78
  </docgen-index>
@@ -65,14 +80,18 @@ No configuration required for this plugin.
65
80
  <docgen-api>
66
81
  <!--Update the source file JSDoc comments and rerun docgen to update the docs below-->
67
82
 
68
- ### start()
83
+ ### start(...)
69
84
 
70
85
  ```typescript
71
- start() => Promise<void>
86
+ start(options?: { recordAudio?: boolean | undefined; } | undefined) => Promise<void>
72
87
  ```
73
88
 
74
89
  start the recording
75
90
 
91
+ | Param | Type | Description |
92
+ | ------------- | --------------------------------------- | ----------------- |
93
+ | **`options`** | <code>{ recordAudio?: boolean; }</code> | Recording options |
94
+
76
95
  --------------------
77
96
 
78
97
 
package/dist/docs.json CHANGED
@@ -7,10 +7,21 @@
7
7
  "methods": [
8
8
  {
9
9
  "name": "start",
10
- "signature": "() => Promise<void>",
11
- "parameters": [],
10
+ "signature": "(options?: { recordAudio?: boolean | undefined; } | undefined) => Promise<void>",
11
+ "parameters": [
12
+ {
13
+ "name": "options",
14
+ "docs": "Recording options",
15
+ "type": "{ recordAudio?: boolean | undefined; } | undefined"
16
+ }
17
+ ],
12
18
  "returns": "Promise<void>",
13
- "tags": [],
19
+ "tags": [
20
+ {
21
+ "name": "param",
22
+ "text": "options Recording options"
23
+ }
24
+ ],
14
25
  "docs": "start the recording",
15
26
  "complexTypes": [],
16
27
  "slug": "start"
@@ -1,12 +1,13 @@
1
1
  export interface ScreenRecorderPlugin {
2
2
  /**
3
3
  * start the recording
4
- *
4
+ * @param options Recording options
5
5
  */
6
- start(): Promise<void>;
6
+ start(options?: {
7
+ recordAudio?: boolean;
8
+ }): Promise<void>;
7
9
  /**
8
10
  * stop the recording
9
- *
10
11
  */
11
12
  stop(): Promise<void>;
12
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["export interface ScreenRecorderPlugin {\n /**\n * start the recording\n * @param options Recording options\n */\n start(options?: { recordAudio?: boolean }): Promise<void>;\n /**\n * stop the recording\n */\n stop(): Promise<void>;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD,MAAM,cAAc,GAAG,cAAc,CAAuB,gBAAgB,EAAE;IAC5E,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,iBAAiB,EAAE,CAAC;CAClE,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD,MAAM,cAAc,GAAG,cAAc,CAAuB,gBAAgB,EAAE;IAC5E,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,iBAAiB,EAAE,CAAC;CAClE,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,CAAC","sourcesContent":["import { registerPlugin } from \"@capacitor/core\";\n\nimport type { ScreenRecorderPlugin } from \"./definitions\";\n\nconst ScreenRecorder = registerPlugin<ScreenRecorderPlugin>(\"ScreenRecorder\", {\n web: () => import(\"./web\").then((m) => new m.ScreenRecorderWeb()),\n});\n\nexport * from \"./definitions\";\nexport { ScreenRecorder };\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,MAAM,OAAO,iBACX,SAAQ,SAAS;IAGjB,KAAK,CAAC,KAAK;QACT,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IACD,KAAK,CAAC,IAAI;QACR,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;CACF"}
1
+ {"version":3,"file":"web.js","sourceRoot":"","sources":["../../src/web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,MAAM,OAAO,iBACX,SAAQ,SAAS;IAGjB,KAAK,CAAC,KAAK;QACT,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;IACD,KAAK,CAAC,IAAI;QACR,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC7C,CAAC;CACF","sourcesContent":["import { WebPlugin } from \"@capacitor/core\";\n\nimport type { ScreenRecorderPlugin } from \"./definitions\";\n\nexport class ScreenRecorderWeb\n extends WebPlugin\n implements ScreenRecorderPlugin\n{\n async start(): Promise<void> {\n throw new Error(\"Method not implemented.\");\n }\n async stop(): Promise<void> {\n throw new Error(\"Method not implemented.\");\n }\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-screen-recorder",
3
- "version": "7.1.2",
3
+ "version": "7.1.4",
4
4
  "description": "Record device's screen",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",