-
Notifications
You must be signed in to change notification settings - Fork 216
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
Project IINA Support #144
Comments
Just a preliminary question, do you know if it is possible to control IINA via terminal, as for mpv? I installed it on my system via cask, but did not find any CLI for it. |
I'm not actually sure, but I found some relevant issues that might help answer your question. |
Yep, according to the roadmap it has to be implemented yet. I am afraid that until they do that, we have no way to interact with IINA and add support for Syncplay. I guess we just have to wait and then try to adjust our mpv module accordingly. |
I already read those, as far as I understood there is no way to control the player status after IINA is launched from the command line... |
Okay, thanks for your time. |
Thank you, maybe you could comment again when they release a functional CLI for IINA. |
If it doesn't support terminal (which is what Syncplay currently uses for mpv) does it at least support the mpv JSON IPC protocol ? |
From here: https://github.com/lhc70000/iina/wiki/Use-SVP-with-IINA it seems that it does, by adding an option in IINA's preferences. I just tried it and obtained a reasonable answer: So it should be possible to control IINA with this JSON IPC interface. Unfortunately, the effort required would be much higher than just adjusting the code in mpv.py . Maybe we could ask @Hamuko to help, it seems that his Sopu client uses JSON IPC to control mpv (https://github.com/Hamuko/Sopu/blob/master/sopu/mediaplayer.py) |
I don't use OSX so it'd definitely need someone to take it up not just to port it over but also to maintain it. |
CLI is on the way it seems |
Great, let's wait for a release. In the meantime, @etoh do we use any |
@jeep70 Great news! 👍 @alby128 We use "no-osd set" to set properties without affecting the OSD, but we don't make use of any command line options which start with --no. Depending on your definition, you could say --input-terminal=no (which we use in Syncplay) is equivalent to --no-input-terminal, but if the problem comes from using the --no prefix style to set variables then that doesn't happen (unless someone manually sets up a --no command in Syncplay player arguments). On Windows, the default command line options are: |
iina/iina#1181 seems to have been merged into the develop branch. Is the IINA develop branch working properly with Syncplay @jeep70 (assuming you change the Syncplay code to detect IINA as mpv)? |
If IINA is now compatible with Syncplay then to add support from Syncplay's side a developer would need to do something like:
See 88113d8 and 117a45b for examples of this being done for MPC-BE. However, adding support also means testing it and then maintaining compatibility in future versions of the player so I suggest only a dev who regularly uses Syncplay with IINA and is willing to be the long-term IINA lead works on adding initial IINA support to Syncplay. |
I can't seem to get syncplay to work from the git - I'm using python2 to open the client and it crashes with |
There is something wrong either in the version you downloaded or in your python environment. Please check if you have twisted, appnope, and pyobjc installed. If you are not sure, just run |
@jeep70 If you run Syncplay in --debug mode is there anything interesting in the Syncplay<->IINA communication? Have you tried Syncplay in both NewMpvPlayer and OldMpvPlayer modes by changing the run static method in MpvPlayer (mpv.py)? |
Just running it in debug mode didn't seem to do anything different, but when i switched the mode check in the run method, I got a different result. https://hastebin.com/mequgifoni Everything after modalSession has been exited prematurely showed up after i force quitted IINA. Pretty much everything else is the same. This is what happens when I try using iina-cli https://hastebin.com/konajasebe I can't seem to open up the app bundle in syncplay. It should be noted that all of the above shows up immediately and i do not have to do anything to IINA for that to happen. |
Sorry I can't be of any more assistance in figuring this out. Maybe you could try and get an IINA dev to join the effort. |
Syncplay already supports mpv and VLC. If IINA ever adds support for Syncplay then please update this issue, but until then I'm going to consider this matter on pause. Unfortunately I don't have the macOS or programming knowledge to make progress on this, and it would need a dedicated lead to ensure things work from both the IINA and Syncplay side. |
That's reasonable. Thank you for entertaining the idea. |
Syncplay 1.6.7 will add support for IINA. The first beta of this release is avaliable here: https://github.com/Syncplay/syncplay/releases/tag/v1.6.7-Beta1. Any feedback would be truly appreciated! |
Awesome! |
I'm seeing Mac development on the horizon, and this is my favorite player for Mac. I figured since it was MPV based, it would be easy to support.
https://lhc70000.github.io/iina/
The text was updated successfully, but these errors were encountered: