Skip to content

Conversation

@03vmate
Copy link

@03vmate 03vmate commented Jan 8, 2025

Adds an optional audioType parameter to preloadAsset, that can be used to set played audio to be a notification/ringtone/etc. sound, as per https://developer.android.com/reference/android/media/AudioAttributes

Defaults to USAGE_MEDIA, which was the previous hardcoded value.

Android only.

dpa99c pushed a commit to dpa99c/capacitor-native-audio that referenced this pull request Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant