Giter Club home page Giter Club logo

Comments (9)

flavioislima avatar flavioislima commented on June 2, 2024 4

I can confirm it doesn't work for me as well for both Linux (Arch and OpenSuse) on Firefox and Vivaldi.
But also doesn't work on Windows as well for same browsers:

Music is playing but still cannot recognize it:
image

Tried restarting the browser, reinstalling the extension, logging out and in again from Last.Fm and still nothing works.

from web-scrobbler.

zbigniewzolnierowicz avatar zbigniewzolnierowicz commented on June 2, 2024 2

Can confirm the same error on macOS + Firefox.

from web-scrobbler.

CECTPAyTkyHECu avatar CECTPAyTkyHECu commented on June 2, 2024 2

Have the same problem too on Windows 11 and Firefox

from web-scrobbler.

NorthernBlow avatar NorthernBlow commented on June 2, 2024 1

on Windows 10 + Firefox same problem, Windows 11 + Firefox same, Manjaro Linux + Firefox the same

from web-scrobbler.

TheColorman avatar TheColorman commented on June 2, 2024

Probably related to #4587. Works fine for me on Windows/Google Chrome + Chrome desktop PWA. The rework made the connector use the javascript api for playing media, is your browser correctly detecting the music?

from web-scrobbler.

vpzomtrrfrt avatar vpzomtrrfrt commented on June 2, 2024

I see information in navigator.mediaSession.metadata while playing so it does seem to exist

though weirdly it's null if I set a breakpoint in the connector code, is that running in a different context?

from web-scrobbler.

abrown19 avatar abrown19 commented on June 2, 2024

Oddly enough, this is working fine for me in Microsoft Edge only (Windows 10 and Windows 11) using the plugin version from the Edge Add-ons site. The other browsers I've tested (firefox, chrome, vivaldi) using the Mozilla or Chrome Web Store versions are reporting errors. The extension can submit now playing information but does not scrobble and reports a general error (!) from the extension.

Using the latest build artifact (Windows 11, Chrome/Vivaldi) listens/scrobbles correctly the first time. Now playing data is sent correctly and shown in the extension, but subsequent scrobbles/listens are "errored" in the cache. Selecting errors from cache and using the scrobble button does not work and deletes them from the cache.

from web-scrobbler.

TheColorman avatar TheColorman commented on June 2, 2024

Maybe related, but I get a "The track is not recognized" notification for every song, but it detects just fine on Google Chrome.

from web-scrobbler.

1shira avatar 1shira commented on June 2, 2024

I did some testing and discovered, that the navigator Object that the extension accesses is not the same that the page accesses in Firefox.

I tried setting the navigator.mediaSession myself to debug, when setting it and then setting
track = navigator.mediaSession.metadata?.title, the extention show's what I have set, while the browser console still shows the song currently playing.
Even after removing the code that sets the mediaSession, it stayed as what I had set while the console on the page always showed the currently playing song.

It seems the extention gets it's own navigator Object from Firefox and cannot access the navigator the page uses, causeing the extention to be unable to detect anything on Firefox with the current implementation.

I suggest using selector classes like before #4587 since the version before still works or accessing the navigator object through an injected script

from web-scrobbler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.