GSConnect / gnome-shell-extension-gsconnect

KDE Connect implementation for GNOME
GNU General Public License v2.0
3.1k stars 253 forks source link

Fast-forwarding and Rewinding not working on Firefox Flatpak as video source #1765

Open barcell1 opened 3 months ago

barcell1 commented 3 months ago

Describe the bug

i cant Fast-forwarding or Rewinding on multimedia control on my phone to control the video from firefox flatpak on my PC . I can only Play or Pause it.

Steps to reproduce

No response

Expected behavior

To be able to fast-forward or Rewind

GSConnect version

56

Installed from

GNOME Extensions website

GNOME Shell version

Last

Linux distribution/release

Fedora Linux 39.20240319.0 (Silverblue)

Paired device(s)

Samsung S22

KDE Connect app version

No response

Plugin(s)

1.29

Support log

No response

Screenshots

No response

Notes

No response

andyholmes commented 3 months ago

Are the controls available, or are they disabled/invisible?

barcell1 commented 3 months ago

The fast-forward or Rewind controls dont show.

andyholmes commented 3 months ago

In that case, it's because Firefox is not reporting them on the MPRIS interface. They may not be available for the media, or not supported for the Media Session API.

Unfortunately there's not much that can be done in GSConnect about that, sorry :/

barcell1 commented 3 months ago

do you know if is something about flatpak firefox version, or this happens on the regular firefox also in all sorts of video ?

barcell1 commented 3 months ago

i Look through the link you sent, and looks like firefox support that type of feature, but somehow with youtube or any other video source is not working

andyholmes commented 3 months ago

Those websites may not support that function, but I'm not familiar with Firefox's MPRIS implementation, sorry :/

ferdnyc commented 1 month ago

@barcell1 I suspect what's going on in the case you're describing is simply that Firefox is being very literal in how it exports controls from the web player.

You mentioned YouTube, for instance. The visible navigation controls on their web interface are limited to seeking (dragging the time slider), and skipping to the next video when watching a playlist.

Any sort of skip-forward/backward functions are hidden behind invisible gestures — you can double-tap in their mobile app, or use arrow keys to skip forward/back in the web player. Both of those are basically hidden commands that Firefox apparently can't or won't make available.

The good news is, I recently made a fix to how GSConnect interprets timeline-seeking input from the KDEConnect media interface, which should hopefully work better with media interfaces like Firefox's.

There's no way we can make the player show controls the media provider doesn't support. (There wouldn't be any point to doing so, since the whole reason they're disabled is that Firefox doesn't accept the commands those controls send.)

But seeking within the video by moving the timeline slider should at least work better now. ...Assuming Firefox permits timeline seeking, as a navigation method.