Comments (12)
Can't replicate, presence seems to work like expected on Firefox 129.0b6 & PreMiD 2.6.4
from presences.
Duplicate of #7094
from presences.
The console output is completely different and I'm not using an external PreMiD software, so no, it's not a duplicate of that 2 year old issue. I can provide logs if it helps.
Can't replicate, presence seems to work like expected on Firefox 129.0b6 & PreMiD 2.6.4
Did you test it on Linux / Arch?
from presences.
It should also be noted that the YT Music presence is the only one I'm having issues with (Twitch and GitHub work just fine) and that restarting Discord/Firefox/the OS or reinstalling the presence/PreMiD doesn't fix the issue
from presences.
If there are any relevant logs you can provide, that would be helpful
from presences.
Output from developer tools console: https://haste.devcord.club/xevabevufi.makefile
More verbose browser console: https://haste.devcord.club/ripagupeji.pl (first few lines are probably from before I refreshed the YTM tab; removed a few lines from unrelated extensions)
I believe there are some TypeErrors in the presence.ts?
from presences.
Can you see which selector returns null
from presences.
I noticed that the selector is working once the page has fully loaded, so I tried isolating the issue and found out that it was caused by a browser addon called "Plasma Integration", which aims to add better support for Firefox to the KDE Plasma desktop environment. This means that this issue is technically resolved, and I apologize for not doing this from the start.
However, the selector document.querySelector('ytmusic-player-bar[slot="player-bar"]')
still appears to be null when the page is refreshed, and another error, which is also included in the logs above, popped up: TypeError: n is undefined
in line 539 (timestampFromFormat()
method in PreMiD's Presence.ts [not the YouTube Music presence.ts file]).
At the very least, it doesn't display any timestamps on my YouTube Music presence even though timestamps are enabled in the presence settings, but I suppose this is a different issue and I can't confirm if it's directly related to the error message mentioned above or even a problem with the YouTube Music presence and not PreMiD itself. However, I was able to replicate the issue on a new Firefox installation with only PreMiD installed this time around.
Since this is not directly related to the problem that was initially brought up: if you consider this issue done from your point of view, you're more than welcome to close this. However, I would much appreciate further assistance.
from presences.
The KDE extension seems to be overwriting the global mediaSession
's playbackState property
which the presence uses to determine whether a song is loaded or not.
The YT Music presence expects playbackState to be either playing
or paused
when a song is loaded, which the plasma extension overrides to always be none
for reproduction, go to a song's page on YT music, after the song is loaded, navigator.mediaSession.playbackState
should be equal to "playing" or "paused".
then do the same with the plasma extension enabled, playbackState should be equal to "none".
note: make sure the script is running in the PreMiD
extenson scope
![](https://private-user-images.githubusercontent.com/142719764/351904407-75c3c308-2c60-469d-9cbb-4134add5a036.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIxMzMyMDcsIm5iZiI6MTcyMjEzMjkwNywicGF0aCI6Ii8xNDI3MTk3NjQvMzUxOTA0NDA3LTc1YzNjMzA4LTJjNjAtNDY5ZC05Y2JiLTQxMzRhZGQ1YTAzNi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzI4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcyOFQwMjE1MDdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xMmFhN2MwZjY4YWVkODUzNmYyZDNiN2ZmNzRlMDI0ODZkMmY4Nzg1MTdhNDRhYmRmOGNmODcwNTljZGI2MzNmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.itbLvWhAoqkwHtnTWp6Zs8EsmAZgNOhq12NsJ6onFFU)
from presences.
@itsmeeudrino That makes sense, thank you. I wonder why they overwrite this value…
Do you also have an idea what could prevent the presence's timestamps from showing up, by any chance?
from presences.
Do you also have an idea what could prevent the presence's timestamps from showing up, by any chance?
if you're using Watching or Listening statuses, timestamps don't show up on desktop (app or web) which i believe is a bug in discord because it shows up as expected on mobile.
i also noticed that YT Music presence errors out in updateSongTimestamps
while the player is loading (querying #left-controls > span), however once the player is loaded the presence should be able to read timestamps.
Presences/websites/Y/YouTube Music/presence.ts
Lines 279 to 297 in fc77e77
from presences.
Oh wow, you're right, it displays them on mobile. What a weird issue, from a DE browser extension problem to a Discord bug... Well, this explains everything, thank you! :)
from presences.
Related Issues (20)
- seez.su | seez.su
- Player Redzing Radio | player.redzingradio.com
- playhublite | playhublite.com HOT 1
- Fboxz.to | fboxz.to - nothing displays, domain changed
- iBroadcast | www.ibroadcast.com - add support for album cover
- Hocmai | hocmai.vn
- sahibinden.com | www.sahibinden.com - add support for ofisim.sahibinden.com subdomain
- Disney+ | www.disneyplus.com - not displaying correctly HOT 1
- Tio Anime | tioanime.com - Change activity type to 'Watching'
- BetterAnime | betteranime.net - Use 'Watching' status instead of 'Playing' HOT 3
- HiAnime | HiAnime.to
- s.to | Update URL HOT 1
- Anitube | anitube.vip HOT 2
- HBO Max | max.com - Integration no longer launches on max.com HOT 3
- Flixrave | flixrave.to
- Plex | Support Watching status and Title as Presence Name HOT 1
- Google Meet | meet.google.com - add title of the room in presence display HOT 3
- Netflix | www.netflix.com - Add a "Show Images" setting HOT 1
- AWS Console | console.aws.amazon.com HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from presences.