mpv-android / mpv-android

#mpv-android @ libera.chat
MIT License
1.81k stars 226 forks source link

Two instances of MPV player #891

Closed smelovsky closed 1 month ago

smelovsky commented 1 month ago

Is it possible to create two instances of MPV player?

We need show two streams in one screen simultaneously. For that I integrated MPV player libs (libmpv.so, libplayer.so, ...) in my app and added two SurfaceView. It works fine for one instance and something wrong if I tried call initialize fun of MPVView class for next instance.

sfan5 commented 1 month ago

This is possible, yes. But the support code inside mpv-android is not laid out for this.