@capgo/native-audio 4.0.1 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +19 -20
- package/package.json +4 -4
package/README.md
CHANGED
@@ -1,17 +1,22 @@
|
|
1
|
-
<
|
1
|
+
<a href="https://capgo.app/"><img src='https://raw.githubusercontent.com/Cap-go/capgo/main/assets/capgo_banner.png' alt='Capgo - Instant updates for capacitor'/></a>
|
2
|
+
|
3
|
+
<div align="center">
|
4
|
+
<h2><a href="https://capgo.app/">Check out: Capgo — Instant updates for capacitor</a></h2>
|
5
|
+
</div>
|
6
|
+
|
2
7
|
<h3 align="center">Native Audio</h3>
|
3
|
-
<p align="center"><strong><code>@
|
8
|
+
<p align="center"><strong><code>@capgo/native-audio</code></strong></p>
|
4
9
|
<p align="center">
|
5
|
-
Capacitor
|
10
|
+
Capacitor plugin for playing sounds.
|
6
11
|
</p>
|
7
12
|
|
8
13
|
<p align="center">
|
9
|
-
<img src="https://img.shields.io/maintenance/yes/
|
10
|
-
<a href="https://github.com/
|
11
|
-
<a href="https://www.npmjs.com/package
|
14
|
+
<img src="https://img.shields.io/maintenance/yes/2022?style=flat-square" />
|
15
|
+
<a href="https://github.com/capgo/native-audio/actions?query=workflow%3A%22Test+and+Build+Plugin%22"><img src="https://img.shields.io/github/workflow/status/@capgo/native-audio/Test%20and%20Build%20Plugin?style=flat-square" /></a>
|
16
|
+
<a href="https://www.npmjs.com/package/capgo/native-audio"><img src="https://img.shields.io/npm/l/@capgo/native-audio?style=flat-square" /></a>
|
12
17
|
<br>
|
13
|
-
<a href="https://www.npmjs.com/package/@
|
14
|
-
<a href="https://www.npmjs.com/package/@
|
18
|
+
<a href="https://www.npmjs.com/package/@capgo/native-audio"><img src="https://img.shields.io/npm/dw/@capgo/native-audio?style=flat-square" /></a>
|
19
|
+
<a href="https://www.npmjs.com/package/@capgo/native-audio"><img src="https://img.shields.io/npm/v/@capgo/native-audio?style=flat-square" /></a>
|
15
20
|
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
16
21
|
<a href="#contributors-"><img src="https://img.shields.io/badge/all%20contributors-6-orange?style=flat-square" /></a>
|
17
22
|
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
@@ -20,7 +25,7 @@
|
|
20
25
|
# Capacitor Native Audio Plugin
|
21
26
|
|
22
27
|
Capacitor plugin for native audio engine.
|
23
|
-
Capacitor v3 - ✅ Support!
|
28
|
+
Capacitor v3/v4 - ✅ Support!
|
24
29
|
|
25
30
|
Click on video to see example 💥
|
26
31
|
|
@@ -31,31 +36,25 @@ Click on video to see example 💥
|
|
31
36
|
|
32
37
|
| Maintainer | GitHub | Social |
|
33
38
|
| ------------- | ------------------------------------------- | ----------------------------------- |
|
34
|
-
|
|
39
|
+
| Martin Donadieu | [riderx](https://github.com/riderx) | [Telegram](https://t.me/martindonadieu) |
|
35
40
|
|
36
41
|
Mainteinance Status: Actively Maintained
|
37
42
|
|
38
43
|
## Preparation
|
39
|
-
All audio
|
40
|
-
|
41
|
-
Andoid: `android/app/src/assets`
|
42
|
-
|
43
|
-
iOS: `ios/App/App/sounds`
|
44
|
-
|
45
|
-
Web: `assets/sounds`
|
44
|
+
All audio files must be with the rest of your source files.
|
46
45
|
|
47
46
|
## Installation
|
48
47
|
|
49
48
|
To use npm
|
50
49
|
|
51
50
|
```bash
|
52
|
-
npm install @
|
51
|
+
npm install @capgo/native-audio
|
53
52
|
```
|
54
53
|
|
55
54
|
To use yarn
|
56
55
|
|
57
56
|
```bash
|
58
|
-
yarn add @
|
57
|
+
yarn add @capgo/native-audio
|
59
58
|
```
|
60
59
|
|
61
60
|
Sync native files
|
@@ -98,7 +97,7 @@ No configuration required for this plugin.
|
|
98
97
|
[Example repository](https://github.com/bazuka5801/native-audio-example)
|
99
98
|
|
100
99
|
```typescript
|
101
|
-
import {NativeAudio} from '@
|
100
|
+
import {NativeAudio} from '@capgo/native-audio'
|
102
101
|
|
103
102
|
|
104
103
|
/**
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@capgo/native-audio",
|
3
|
-
"version": "4.0
|
3
|
+
"version": "4.1.0",
|
4
4
|
"description": "A native plugin for native audio engine",
|
5
5
|
"main": "dist/plugin.js",
|
6
6
|
"module": "dist/esm/index.js",
|
@@ -80,12 +80,12 @@
|
|
80
80
|
},
|
81
81
|
"repository": {
|
82
82
|
"type": "git",
|
83
|
-
"url": "https://github.com/
|
83
|
+
"url": "https://github.com/Cap-go/native-audio"
|
84
84
|
},
|
85
85
|
"bugs": {
|
86
|
-
"url": "https://github.com/
|
86
|
+
"url": "https://github.com/Cap-go/native-audio/issues"
|
87
87
|
},
|
88
88
|
"publishConfig": {
|
89
89
|
"access": "public"
|
90
90
|
}
|
91
|
-
}
|
91
|
+
}
|