Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question. Embedding the player in an application #42

Closed
jmoraleda opened this issue Aug 1, 2017 · 3 comments
Closed

Question. Embedding the player in an application #42

jmoraleda opened this issue Aug 1, 2017 · 3 comments

Comments

@jmoraleda
Copy link

Hello, I have been testing python-mpv for a project. Thank you for creating it!. I would like to create a wxPython (phoenix) widget to encapsulate the play window and be able to display that window as part of a larger application, but have not figured out how to tell python-mpv to open the player inside an existing window rather than on its own window. Is this possible with python-mpv? I am in Linux. Could you post an example on how to pass the window handle? Thank you again.

@jaseg
Copy link
Owner

jaseg commented Aug 2, 2017

Have a look at the upstream doc. The easiest way would be to pass the wid option to the MPV constructor. The OpenGL API is wrapped in python-mpv, but there is no high-level support for it.

@jaseg
Copy link
Owner

jaseg commented Aug 2, 2017

Also, maybe have a look at this

@jmoraleda
Copy link
Author

Thank you. Setting the wid option works. Before I was passing wid as an int instead of a str and that is why the player would not open embedded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants