I'm making a multiplatform ffmpeg wrapper.
on JVM and android it uses javacpp generated bindings and on native it uses cinterop
I'm wondering if there's a better way to glue it all together than this example I have of just one part
Copy code
public expect class AVFormatContext
public expect val AVFormatContext.metadata: AVDictionary
JVM:
Copy code
public actual typealias AVFormatContext = org.bytedeco.ffmpeg.avformat.AVFormatContext
public actual val AVFormatContext.metadata: AVDictionary
get() = this.metadata()
zt
04/12/2024, 4:48 AM
I'm running into the extension values being shadowed by public members doing it this way. When I compile for linuxX64 my extension values are shadowed by the generated ones by cinterop. I'm completly unsure how to go forward. Surely there's some way to do this... right?