Skip to content

Sound from Compose resource doesn't load on iOS #38

Description

@davidvavra

Hello,
I'm trying to use this library with Compose Resources. It correctly works on Android. But when I pass the same resource on iOS, I get this error:

[Basic-Sound Audio] ERROR: load:failure: kotlin.IllegalStateException: load:The path provided was invalid

Here is how I'm calling the library:

val resource = Res.getUri("files/$sound.mp3")
Audio(Platform.appContext(), resource, autoPlay = true)

Platform.appContext is just Unit on iOS

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions