Replies: 4 comments 4 replies
-
|
I think a possible avenue is embedding a video player's window in a tauri window. |
Beta Was this translation helpful? Give feedback.
-
|
Has there been a solution to doing this? I too want to mpv into my tauri window for video-playback |
Beta Was this translation helpful? Give feedback.
-
|
Anyone looking for a solution, No I didn't embed mpv. I created a server with backend and video frontend that live transcodes and streams it to the browser video player |
Beta Was this translation helpful? Give feedback.
-
|
If someone is looking to do this, I was able to create a child WebviewWindow and run libmpv in it using tauri-plugin-libmpv. Downside is that I'm faking it and the window is not truly embedded, basically when the parent moves or resizes I reset the position and size of the libmpv window to align it with an HTML div (whose coordinates I get through One way that could work (on the word of ChatGPT...) would be to configure libmpv to render in a GPU texture that would then be displayed in the Tauri WebView through wgpu and/or a canvas. I won't go that route for now since it seems difficult but if someone wants to enable true embedding, as an HTML component, they can explore that way. If someone accomplishes this, I would very much appreciate to be notified! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, can you embed mpv video player inside a window?
I want to have a webview with a transparent background and a canvas underneath this webview which displays videos with the help of mpv.
I looked at some examples like https://github.com/vgarleanu/lumiere which don't use tauri but might be able to implement it for tauri but I cannot find a way to achieve this.
I know that there is a working mpv binding for rust but its documentation is vague.
There is also vlc-rc but that to doesn't have a good documentation
Beta Was this translation helpful? Give feedback.
All reactions