KotlinAudio
KotlinAudio copied to clipboard
KotlinAudio is an Android audio player written in Kotlin, making it simpler to work with audio playback from streams and files.
Makes it possible to set the audio usage attribute. By doing this it is possible to force the audio to come from the earpiece speaker. A useful use case is...
I have an arrayBuffer which I want to playback as a stream. Is this possible?
this PR adds an option to crop the album art into a square, so android < 13 and Samsung users will see the squared album art spanning their notif area,...
supports the fade in/out feature request in RNTP. Because RN's Animated.Value won't change within Android's HeadlessJsTaskService, a native way to animate volume change to achieve a fading effect is necessary;...
this PR is WIP; code quality is quite bad but I need advice on how to properly implement this. Functionality-wise it seems to work. while exoplayer does not natively support...
I faced this issue when using react-native-track-player, which is utilizing KotlinAudio library: Version: v0.1.34 ``` Fatal Exception: kotlin.UninitializedPropertyAccessException: lateinit property descriptionAdapter has not been initialized at com.doublesymmetry.kotlinaudio.notification.NotificationManager$destroy$1.invokeSuspend(NotificationManager.kt:295) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at...
Spent a moment looking at migrating to media3 using the following migration guide: https://developer.android.com/guide/topics/media/media3/getting-started/migration-guide Unfinished bits: - MediaSessionCallback.RATING - NotificationManager: mediaSessionConnector.invalidateMediaSessionQueue() / mediaSession.invalidateMediaSessionMetadata() functionality - BaseAudioPlayer ratingType - BaseAudioPlayer requestAudioFocus...
This PR compliments RNTP's AA support PR. Here the mediaSession's token is exposed in BaseAudioPlayer, and IconBitmap is defined in NotificationManager. Together they enable media playback control via AA and...
I wonder if anyone else would find this issue helpful, or if devs are interested in implementing this/pulling my changes? I unfortunately uses Samsung as my main phone and OneUI's...
- BaseAudioPlayer#setEqualizerLevels(levels) - BaseAudioPlayer#getEqualizerPresets() - BaseAudioPlayer#setEqualizerPreset(preset) - BaseAudioPlayer#setEqualizerEnabled(enabled) - BaseAudioPlayer#clearEqualizer()