help get rust working #3
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: ryze/ff2mpv-rust#3
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
OS: Win 7 x64
mpv: latest v0.36.0
Hi,
I don't know how to get this working. I installed the addon for firefox. I downloaded the ff2mpv-rust.exe and I put the .json file inside appdata. But nothing happens. After running the .exe a command window appers but it doesn't react to any commands
Im a noob in regard of scripting and so on
Thank you for any help/suggestions
Have you installed native messaging host, according to the guide? You can get the manifest (
ff2mpv-windows.json
in guide) by runningff2mpv-rust.exe manifest
from the command line.I have not. I thought rust is a alternative solution? ^^ Im kinda overwhelmed, Im a casual windows user ^^'
I typed "ff2mpv-rust.exe manifest" but nothing happend.
ff2mpv-rust is the alternative client for ff2mpv, that's correct.
Type in command line
Copy what the command prints and save it in some .txt file somewhere on your PC (you can save it in the same folder as ff2mpv-rust.exe, for convenience). Then follow this section of the guide using path to that .txt file.
Okay now I got this
Copy that and save inside some text file (for example in C:\ff2mpv-rust\messaging-host.json). Then follow this section of the guide using that path.
There is no "NativeMessagingHosts" in the Mozilla registry, should I create it?
Yes
Why there is not a single screenshot how this suppose to look like, I dont get keys and values ^^ There are so many options.
I don't speak German, but I think you need to create a string key (that should be Zeichenfolge option) named "ff2mpv". Set the value of that key to the path of your messaging-host.json
Okay I have no idea what to do now. What about this file? https://github.com/ryze312/ff2mpv-rust/blob/main/ff2mpv-rust.json
my json rust file from the cmd looks like this
{
"name": "ff2mpv",
"description": "ff2mpv's external manifest",
"path": "F:\Backup Windows\Downloads\rust\ff2mpv-rust.exe",
"type": "stdio",
"allowed_origins": [
"ff2mpv@yossarian.net"
]
}
PS. I have never seen such an atrocious "install guide" honestly one screenshot would solve the issue xD
The file that you linked is the config file for ff2mpv-rust, it's not required to get it running if you don't want to change the player used or arguments for mpv, it is not required.
The file from cmd you got is the config file for native messaging host, that is required to setup Firefox for communicating between ff2mpv addon and ff2mpv-rust (which starts up mpv).
Second file needs to be placed somewhere on your PC, the path to which is specified by the registry key you need to create
I have but it is not working
Show the contents of ff2mpv-windows.json
{
"name": "ff2mpv",
"description": "ff2mpv's external manifest",
"path": "F:\Backup Windows\Downloads\rust\ff2mpv-rust.exe",
"type": "stdio",
"allowed_origins": [
"ff2mpv@yossarian.net"
]
}
I changed allowed_extensions with allowed_origins as it is in the guide?
Is mpv.exe in PATH? If not, make a config file for ff2mpv-rust and specify absolute path to it there.
Like such
are you sure about this double \ ?
So I made ff2mpv-rust.json in appdata/roaming with the text you posted (with my mpv.exe location), and its not working
Not working how? Have you restarted Firefox after adding registry key?
Yes I have
Go to any video on YouTube and click on ff2mpv extension icon, console window might flash
I have tried but the only thing that happens is that it pauses the youtube video
Then there is a misconfiguration in your ff2mpv-windows.json config
yeah but which? I didnt change anything besides this allowed_origins thing
{
"name": "ff2mpv",
"description": "ff2mpv's external manifest",
"path": "F:\Backup Windows\Downloads\rust\ff2mpv-rust.exe",
"type": "stdio",
"allowed_origins": [
"ff2mpv@yossarian.net"
]
}
Try double slashes in path
If it still doesn't work, try creating a subkey (folder) in "NativeMessagingHosts" named "ff2mpv" and the default value for it should be your path to ff2mpv-windows.json
Thats exactly what I did now, and also not working ^^
Show a screenshot
(Standard) specifies default value for a key, set it's value to that path
I tried, nothing ...^^'
Then there is an issue either with an addon itself or your Firefox installation. Nothing I can do, I do not have Windows machine to test it out. You can try Python messaging host instead.
Okay, but thank you for your effort ^^
When I enter "ff2mpv-rust.exe validate"
then he says JSON Error: trailing comma at line 4 column 1
Probably line 4, column 1 in this file. It is plain text, just open it and look at the start of line 4, or the end of line 3 might be missing a bracket or speech mark or something.
I just copied the manifest. I tried to find it, but its hard when you dont even understand the code ^^
{
"name": "ff2mpv",
"description": "ff2mpv's external manifest",
"path": "C:\Program Files\rust\ff2mpv-rust.exe",
"type": "stdio",
"allowed_origins": [
"ff2mpv@yossarian.net"
]
}
Maybe it's the apostrophe at this part?: "description": "ff2mpv's external manifest"
This is still going? Amazing.
Try double slashes as I suggested
I don't undestand, try double slashes or apostrophe xD
Double slashes
"C:\\Program Files\\rust\\ff2mpv-rust.exe"
sorry it changes it here.
Yes, looks good
not good enough ^^
What's in the config file itself (
%APPDATA%\ff2mpv-rust.json
)?There is a trailing comma as you can see, remove it
Okay config is now valid! thank you
but it still doesnt work ^^
Restart Firefox and try again. Does the console window appear on launch?
Which launch? when I click the mpv buton?
Yes
no there is no reaction T.T
Try also adding that key to
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Mozilla\NativeMessagingHosts\
in the registryMaybe also
HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\NativeMessagingHosts\
I made the first one, by the 2nd one there was already a "NativeMessagingHosts" folder. I also added there.
but no luck :P
So your rust is working on linux?
it does work on Linux, I am not sure what's wrong with your installation. Configs are fine, it might just be that Firefox has broken messaging hosts on Windows. Try following "official" ff2mpv guide with Python script, that might work.
what can I type into the rust window, to try if it can trigger mpv?
If that still doesn't work, it's not ff2mpv-rust problem, but rather ff2mpv itself. In such case, file an issue in their repo
I am closing this off, as at this point it just a spam. GitHub issues are meant for code and behavior related problems, not for tech support.