Youtube: Your browser can't play this video Topic is solved

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
User avatar
Tharthan
Board Warrior
Board Warrior
Posts: 1442
Joined: 2019-05-20, 20:07
Location: New England

Re: Youtube: Your browser can't play this video

Post by Tharthan » 2025-05-27, 22:39

Are there any Pale Moon settings that might cause this to happen for "non-DRM" (or should be non-DRM) livestreams?

I've just tested viewing (after noticing that it was doing this for one particular livestream) a number of livestreams on YouTube, and it gives me this message for all of them.
Off-topic:
It does something very similar on Twitch.tv (even when logged in) for me, showing a light purple question mark with a small square adjacent to each corner, instead of the actual livestreamed video.

Crucially, this does not happen for me on either website when viewing previously-recorded livestreams, videos, or clips. Only the livestreams that are currently in progress.
"This is a war against individuality and intelligence. Only thing we can do is stand strong."adesh, 9 January 2020

"I used to think I was a grumpy old man, but I don't hold a candle compared to Tharthan."Cassette, 9 September 2020

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37776
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Youtube: Your browser can't play this video

Post by Moonchild » 2025-05-27, 23:04

Looks like Twitch started to require MediaCapabilities. This is a very controversial and highly fingerprintable API that is sideways related to DRM. Basically it exposes to the web detailed media (video/audio) decoding and encoding capabilities.
We don't support it currently.
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
suzyne
Astronaut
Astronaut
Posts: 737
Joined: 2023-06-28, 22:43
Location: Australia

Re: Youtube: Your browser can't play this video

Post by suzyne » 2025-05-27, 23:06

Can confirm. Tried turning off the Hardware Acceleration and uBlock Origin, and the problem persists. :(
Laptop 1: Windows 11 64-bit, i7 @ 2.80GHz, 16GB, NVIDIA GeForce MX450.
Laptop 2: Windows 10 32-bit, Atom Z3735F @ 1.33GHz, 2GB, Intel HD Graphics.
Laptop 3: Linux Mint 20.3 64-bit, i5 @ 2.5GHz, 8GB, Intel HD Graphics 620.

User avatar
Deadgye
Hobby Astronomer
Hobby Astronomer
Posts: 26
Joined: 2020-11-06, 23:59

Re: Youtube: Your browser can't play this video

Post by Deadgye » 2025-05-28, 01:31

Moonchild wrote:
2025-05-27, 23:04
Looks like Twitch started to require MediaCapabilities. This is a very controversial and highly fingerprintable API that is sideways related to DRM. Basically it exposes to the web detailed media (video/audio) decoding and encoding capabilities.
We don't support it currently.
I'm not sure it's that. I used https://player.twitch.tv/?parent=www.tw ... NUMBERHERE to get the embedded player and the video works while the browser console still logs the same "MediaCapabilities is not supported", "MediaCapabilities found Array [ Object, Object, Object, Object, Object ]", and "Unhandled promise rejection" messages you'd see logged from the normal site.

Based on other recent complaints that twitch broke, and what fixed it for them, I'm going to guess the actual issue might be https://repo.palemoon.org/MoonchildProd ... ssues/2473

User avatar
adoxa
Lunatic
Lunatic
Posts: 441
Joined: 2019-03-16, 13:26
Location: Qld, Aus.

Re: Youtube: Your browser can't play this video

Post by adoxa » 2025-05-28, 06:40

It does indeed seem to be :has at issue for twitch; here's a userstyle workaround.

Code: Select all

@-moz-document domain("www.twitch.tv") {
  .persistent-player {
    width: 100%
  }
}

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37776
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Youtube: Your browser can't play this video

Post by Moonchild » 2025-05-28, 13:53

Ah well that's better then. I'd really prefer to avoid the MediaCapabilities API if at all possible.
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
Tharthan
Board Warrior
Board Warrior
Posts: 1442
Joined: 2019-05-20, 20:07
Location: New England

Re: Youtube: Your browser can't play this video

Post by Tharthan » 2025-05-28, 15:28

adoxa wrote:
2025-05-28, 06:40
It does indeed seem to be :has at issue for twitch; here's a userstyle workaround.

Code: Select all

@-moz-document domain("www.twitch.tv") {
  .persistent-player {
    width: 100%
  }
}
How does one use that?

Also, has it been determined whether something similar might be happening with YouTube for streams in any way?
"This is a war against individuality and intelligence. Only thing we can do is stand strong."adesh, 9 January 2020

"I used to think I was a grumpy old man, but I don't hold a candle compared to Tharthan."Cassette, 9 September 2020

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37776
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Youtube: Your browser can't play this video

Post by Moonchild » 2025-05-28, 16:33

Tharthan wrote:
2025-05-28, 15:28
How does one use that?
You can put it in UserContent.css in your profile's chrome subfolder, and restart the browser to pick it up.
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
Deadgye
Hobby Astronomer
Hobby Astronomer
Posts: 26
Joined: 2020-11-06, 23:59

Re: Youtube: Your browser can't play this video

Post by Deadgye » 2025-05-28, 20:02

Off-topic:
Adding an additional confirming that the CSS style fixed twitch's player for me.
I also made a thread to separate the twitch player issue from this thread.
Tharthan wrote:
2025-05-28, 15:28
Also, has it been determined whether something similar might be happening with YouTube for streams in any way?
The issue with twitch's player on twitch.tv is unrelated. To recap the thread: Youtube videos and streams should work on Pale Moon, notwithstanding channels that require specific DRM libs--such as google's widevine DRM--like the channel in OP's post.

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 5606
Joined: 2015-12-09, 15:45

Re: Youtube: Your browser can't play this video

Post by moonbat » 2025-05-29, 01:16

Tharthan wrote:
2025-05-28, 15:28
How does one use that?
Or use Stylem, which is easier for CSS tweaks.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net