File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 1
- # iOS Silent Hack
1
+ # iOS Silent Bypass
2
2
3
- iOS Silent Hack is a library that allows you to play audio context even if the user has the Silent switch on.
3
+ iOS Silent Bypass is a library that allows you to play audio context even if the user has the Silent switch on.
4
4
You'll need to wait for an user interaction to check if the audio context is allowed.
5
5
6
6
## Usage
7
7
8
+ ``` bash
9
+ npm install @activetheory/ios-silent-bypass
10
+ ```
11
+
8
12
``` js
9
- import SilentHack from ' @activetheory/ios-silent-hack ' ;
13
+ import SilentHack from ' @activetheory/ios-silent-bypass ' ;
10
14
11
15
const silentHack = new SilentHack ();
12
16
@@ -16,3 +20,7 @@ console.log(silentHack.allowed);
16
20
// if you want to remove the event listeners after the audio context is allowed, you can call the destroy method
17
21
silentHack .destroy ();
18
22
```
23
+
24
+ ## License
25
+
26
+ MIT
You can’t perform that action at this time.
0 commit comments