ParadoxSpiral/libmpv-rs

Is something like the old SDL2 example still possible with this wrapper?

Opened this issue · 2 comments

I was looking for a libmpv wrapper that can render to a opengl frame buffer. I found mpv-rs that has a SDL2 example that does just that. This project appears to be fork of that, but the SDL2 example was removed in 5896d2d

Is that functionality no longer in the scope of this project?

First of all this isn't exactly a fork of libmpv, it binds to the APIs exposed by it in the crate libmpv-sys and then makes them closer to idiomatic rust in libmpv-rs.

The libmpv API that we used for that example was deprecated, and instead the new render API should be used. Currently I have not had the time to create an idiomatic wrapper. However if you don't mind you can still use the raw bindings.

Sorry for the late response.

Thanks for getting back to me. I'll probably try to craft a safe wrapper on top of the raw bindings then. Would you be interested in a PR for adding that to this library?