libmpv-rs icon indicating copy to clipboard operation
libmpv-rs copied to clipboard

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

Open sztomi opened this issue 4 years ago • 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 https://github.com/ParadoxSpiral/libmpv-rs/commit/5896d2d579dfdd9e0921e3d598e4e9e8965a0deb

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

sztomi avatar Nov 06 '20 20:11 sztomi

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.

ParadoxSpiral avatar Nov 13 '20 18:11 ParadoxSpiral

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?

sztomi avatar Nov 17 '20 12:11 sztomi