google-chrome not working #13

Closed
opened 2024-04-12 17:16:37 +02:00 by hdm9527 · 15 comments
hdm9527 commented 2024-04-12 17:16:37 +02:00 (Migrated from github.com)

Firefox can call mpv to play videos, but it cannot work using google-chrome, and there is no error message in the console.

firefox

image

chrome

image

Firefox can call mpv to play videos, but it cannot work using google-chrome, and there is no error message in the console. >firefox ![image](https://github.com/ryze312/ff2mpv-rust/assets/39702328/c0d98c13-7c43-4e54-b11f-c32492544c80) >chrome ![image](https://github.com/ryze312/ff2mpv-rust/assets/39702328/c11b3b10-231a-46cb-9089-0ea731b51088)
ryze312 commented 2024-04-13 17:22:56 +02:00 (Migrated from github.com)

Looks like Chromium browsers require the chrome-extension:// to end with the leading slash, can you try adding it manually and testing again?

Looks like Chromium browsers require the `chrome-extension://` to end with the leading slash, can you try adding it manually and testing again?
hdm9527 commented 2024-04-13 17:27:23 +02:00 (Migrated from github.com)

Looks like Chromium browsers require the chrome-extension:// to end with the leading slash, can you try adding it manually and testing again?

Adding '/' at the end still doesn't work.
image

> Looks like Chromium browsers require the `chrome-extension://` to end with the leading slash, can you try adding it manually and testing again? Adding '/' at the end still doesn't work. ![image](https://github.com/ryze312/ff2mpv-rust/assets/39702328/07ceead9-d3de-44d1-b839-d6380f8ee4da)
ryze312 commented 2024-04-13 17:31:43 +02:00 (Migrated from github.com)

Can you paste the contents of the manifest as is here in the code blocks?

Can you paste the contents of the manifest as is here in the code blocks?
hdm9527 commented 2024-04-13 17:34:25 +02:00 (Migrated from github.com)

Can you paste the contents of the manifest as is here in the code blocks?

{
  "name": "ff2mpv",
  "description": "ff2mpv's external manifest",
  "path": "/usr/bin/ff2mpv-rust",
  "type": "stdio",
  "allowed_origins": [
    "chrome-extension://ephjcajbkgplkjmelpglennepbpmdpjg/"
  ]
}
> Can you paste the contents of the manifest as is here in the code blocks? ``` { "name": "ff2mpv", "description": "ff2mpv's external manifest", "path": "/usr/bin/ff2mpv-rust", "type": "stdio", "allowed_origins": [ "chrome-extension://ephjcajbkgplkjmelpglennepbpmdpjg/" ] } ```
ryze312 commented 2024-04-13 17:36:16 +02:00 (Migrated from github.com)

Could you provide some more information? What distribution you are trying this on, what Chrome version and does this work with the original native client?

Could you provide some more information? What distribution you are trying this on, what Chrome version and does this work with the original native client?
hdm9527 commented 2024-04-13 17:46:07 +02:00 (Migrated from github.com)

Could you provide some more information? What distribution you are trying this on, what Chrome version and does this work with the original native client?

ArchLinux(Hyprland)
Chrome: 123.0.6312.122-1
mpv: 1:0.37.0-3

I based on FF2MPV Installation and Google's documentation Configuration ff2mpv.json. No other native client can test.

> Could you provide some more information? What distribution you are trying this on, what Chrome version and does this work with the original native client? ArchLinux(Hyprland) Chrome: 123.0.6312.122-1 mpv: 1:0.37.0-3 I based on [FF2MPV Installation](https://github.com/woodruffw/ff2mp2mpv/wiki/installation-n-linux#chromium) and [Google's documentation](https://developer.chrome.com/docs/apps/nativeMessaging/#native-messaging-host-location) Configuration `ff2mpv.json`. No other native client can test.
ryze312 commented 2024-04-13 18:06:59 +02:00 (Migrated from github.com)

Looks like AUR package also writes manifest in /etc/opt/chrome/native-messaging-hosts/ff2mpv.json, maybe Chrome is picking up that instead of the one in your home directory? Try editing it.

Looks like AUR package also writes manifest in `/etc/opt/chrome/native-messaging-hosts/ff2mpv.json`, maybe Chrome is picking up that instead of the one in your home directory? Try editing it.
hdm9527 commented 2024-04-13 18:12:04 +02:00 (Migrated from github.com)

Looks like AUR package also writes manifest in /etc/opt/chrome/native-messaging-hosts/ff2mpv.json, maybe Chrome is picking up that instead of the one in your home directory? Try editing it.

Chrome made a copy of it myself, but I didn't create it.
image

> Looks like AUR package also writes manifest in `/etc/opt/chrome/native-messaging-hosts/ff2mpv.json`, maybe Chrome is picking up that instead of the one in your home directory? Try editing it. Chrome made a copy of it myself, but I didn't create it. ![image](https://github.com/ryze312/ff2mpv-rust/assets/39702328/0b084575-abc2-422c-a5e8-698ebe216979)
ryze312 commented 2024-04-13 18:57:08 +02:00 (Migrated from github.com)

I would suggest trying with the original manifest and see if it works first, should be ff2mpv-native-messaging-host-git in AUR

I would suggest trying with the original manifest and see if it works first, should be `ff2mpv-native-messaging-host-git` in AUR
hdm9527 commented 2024-04-13 19:29:11 +02:00 (Migrated from github.com)

Looks like AUR package also writes manifest in /etc/opt/chrome/native-messaging-hosts/ff2mpv.json, maybe Chrome is picking up that instead of the one in your home directory? Try editing it.

Google Chrome's problem, chromium work, and lack of / at the end.
image

> Looks like AUR package also writes manifest in `/etc/opt/chrome/native-messaging-hosts/ff2mpv.json`, maybe Chrome is picking up that instead of the one in your home directory? Try editing it. Google Chrome's problem, chromium work, and lack of `/` at the end. ![image](https://github.com/ryze312/ff2mpv-rust/assets/39702328/7b963065-0fd4-462a-89e1-bbb798a53150)
ryze312 commented 2024-04-13 20:05:19 +02:00 (Migrated from github.com)

You mean the problem is with your Chrome installation? The only issue that I can reproduce is the lack of leading slash there. Does it work correctly on both browsers after adding it?

You mean the problem is with your Chrome installation? The only issue that I can reproduce is the lack of leading slash there. Does it work correctly on both browsers after adding it?
hdm9527 commented 2024-04-13 20:08:38 +02:00 (Migrated from github.com)

You mean the problem is with your Chrome installation? The only issue that I can reproduce is the lack of leading slash there. Does it work correctly on both browsers after adding it?

Chrome still not working. Chromium works.

> You mean the problem is with your Chrome installation? The only issue that I can reproduce is the lack of leading slash there. Does it work correctly on both browsers after adding it? Chrome still not working. Chromium works.
hdm9527 commented 2024-04-14 08:50:41 +02:00 (Migrated from github.com)

I tried changing the path to /usr/bin/kitty and successfully started kitty, which proves that Chrome’s NativeMessagingHosts configuration is correct.
image

I tried changing the path to `/usr/bin/kitty` and successfully started kitty, which proves that Chrome’s NativeMessagingHosts configuration is correct. ![image](https://github.com/ryze312/ff2mpv-rust/assets/39702328/2e8e2ba1-b95f-4c91-8d0b-2329c332e2e7)
aljustiet commented 2024-04-26 00:37:46 +02:00 (Migrated from github.com)

Same

Same
aljustiet commented 2024-04-27 21:15:08 +02:00 (Migrated from github.com)

I tried it on Brave and it works there. I also switched to it

I tried it on Brave and it works there. I also switched to it
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: ryze/ff2mpv-rust#13
No description provided.