@siteed/expo-audio-stream 1.13.1 → 1.13.2
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/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
10
|
|
|
11
|
+
## [1.13.2] - 2025-02-10
|
|
12
|
+
|
|
11
13
|
## [1.13.1] - 2025-02-10
|
|
12
14
|
|
|
13
15
|
## [1.13.0] - 2025-02-09
|
|
@@ -107,7 +109,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
107
109
|
- Feature: Audio features extraction during recording.
|
|
108
110
|
- Feature: Consistent WAV PCM recording format across all platforms.
|
|
109
111
|
|
|
110
|
-
[unreleased]: https://github.com/deeeed/expo-audio-stream/compare/@siteed/expo-audio-stream@1.13.
|
|
112
|
+
[unreleased]: https://github.com/deeeed/expo-audio-stream/compare/@siteed/expo-audio-stream@1.13.2...HEAD
|
|
113
|
+
[1.13.2]: https://github.com/deeeed/expo-audio-stream/compare/@siteed/expo-audio-stream@1.13.1...@siteed/expo-audio-stream@1.13.2
|
|
111
114
|
[1.13.1]: https://github.com/deeeed/expo-audio-stream/compare/@siteed/expo-audio-stream@1.13.0...@siteed/expo-audio-stream@1.13.1
|
|
112
115
|
[1.13.0]: https://github.com/deeeed/expo-audio-stream/compare/@siteed/expo-audio-stream@1.12.3...@siteed/expo-audio-stream@1.13.0
|
|
113
116
|
[1.12.3]: https://github.com/deeeed/expo-audio-stream/compare/@siteed/expo-audio-stream@1.12.2...@siteed/expo-audio-stream@1.12.3
|
|
@@ -38,20 +38,30 @@ class AudioRecordingService : Service() {
|
|
|
38
38
|
// Start as foreground service if keepAwake is true, regardless of notification settings
|
|
39
39
|
val keepAwake = AudioRecorderManager.getInstance()?.getKeepAwakeStatus() ?: false
|
|
40
40
|
if (keepAwake) {
|
|
41
|
-
// Create a minimal notification channel if needed, but don't show the notification
|
|
42
41
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
|
42
|
+
// Create a minimal notification channel if needed
|
|
43
43
|
val channel = NotificationChannel(
|
|
44
44
|
"recording_service",
|
|
45
45
|
"Recording Service",
|
|
46
46
|
NotificationManager.IMPORTANCE_LOW
|
|
47
|
-
)
|
|
47
|
+
).apply {
|
|
48
|
+
setSound(null, null)
|
|
49
|
+
enableLights(false)
|
|
50
|
+
enableVibration(false)
|
|
51
|
+
}
|
|
48
52
|
val notificationManager = getSystemService(NotificationManager::class.java)
|
|
49
53
|
notificationManager.createNotificationChannel(channel)
|
|
50
54
|
|
|
51
|
-
// Create minimal notification
|
|
55
|
+
// Create minimal silent notification
|
|
52
56
|
val notification = NotificationCompat.Builder(this, "recording_service")
|
|
53
57
|
.setContentTitle("")
|
|
54
58
|
.setContentText("")
|
|
59
|
+
.setSmallIcon(R.drawable.ic_microphone)
|
|
60
|
+
.setOngoing(true)
|
|
61
|
+
.setSound(null)
|
|
62
|
+
.setVibrate(null)
|
|
63
|
+
.setDefaults(0)
|
|
64
|
+
.setPriority(NotificationCompat.PRIORITY_LOW)
|
|
55
65
|
.build()
|
|
56
66
|
|
|
57
67
|
startForeground(1, notification)
|