I've looked far and wide but haven't found example...
# multiplatform
m
I've looked far and wide but haven't found examples of a KMM (Android/iOS) media player. Does anyone have advice on where/what to look for, in terms of learning the best approach to playing audio on both devices in a KMM architecture? • https://github.com/icerockdev/moko-media seems like it could be exactly this, but I've had trouble getting this running, and I have a hard time making out if it only supports picture media as of yet. • https://github.com/korlibs/korau is very cool, but it is targeting Kotlin Native as far as I understand. New to the JVM world but adore Kotlin, so I'm not quite clear on whether this would be something you'd use in KMM.
If the answer is "you don't", and it is rather to have a light
expect
in KMM and a full media player (ExoPlayer and mobileplayer-ios perhaps?) implemented in
actual
on both sides - does anyone have advice or experiences to share? Pitfalls to avoid, good patterns to adopt?
s
Media playback is one of those ui level things. The KMM model of doing things is to keep the ui native and share the rest of the code. So video playback, go native. Managing a playlist, that’s great for KMM.