@octane-xplat/audio 0.12.0 → 0.13.0
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
|
@@ -5,9 +5,9 @@ pnpm add @octane-xplat/audio
|
|
|
5
5
|
```
|
|
6
6
|
|
|
7
7
|
Long-form audio playback for Octane xplat apps — a queue player, not a
|
|
8
|
-
sound-effect bank. iOS
|
|
9
|
-
handling included) and Android `MediaPlayer`, both directly on
|
|
10
|
-
`@nativescript/core` with no plugin dependency
|
|
8
|
+
sound-effect bank. iOS uses `AVPlayer`/`AVAudioSession` (interruption
|
|
9
|
+
handling included) and Android uses `MediaPlayer`, both directly on
|
|
10
|
+
`@nativescript/core` with no plugin dependency. Web uses an
|
|
11
11
|
`HTMLAudioElement` plus the Media Session API for system controls.
|
|
12
12
|
|
|
13
13
|
```ts
|
|
@@ -22,10 +22,10 @@ const off = player.subscribe((snapshot) => {
|
|
|
22
22
|
})
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
`
|
|
27
|
-
`
|
|
28
|
-
|
|
25
|
+
Playback features vary by target and runtime state, so call
|
|
26
|
+
`capabilities()` before promising behavior like lock-screen controls. It
|
|
27
|
+
reports `supported`, `backgroundPlayback`, `systemControls`,
|
|
28
|
+
`userGestureRequired`, and `interruptions`. The native entry requires
|
|
29
29
|
iOS or Android — other targets get the web implementation or a thrown
|
|
30
30
|
error, never a silent no-op.
|
|
31
31
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octane-xplat/audio",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"description": "Long-form audio playback for Octane xplat",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"android",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@nativescript-community/octane": "0.2.4",
|
|
45
45
|
"@nativescript/core": "9.1.3",
|
|
46
46
|
"@octanejs/vite-plugin": "0.1.61",
|
|
47
|
-
"octane": "0.
|
|
47
|
+
"octane": "0.11.0",
|
|
48
48
|
"tsrx-typegen": "0.2.2",
|
|
49
49
|
"typescript": "5.9.3",
|
|
50
50
|
"vite": "8.3.0"
|