| Summary: | MediaSession API implementation does not work on youtube | ||
|---|---|---|---|
| Product: | [Plasma] plasma-browser-integration | Reporter: | appukuttancr |
| Component: | Chrome | Assignee: | Kai Uwe Broulik <kde> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://commits.kde.org/plasma-browser-integration/f4722bd0a6ec63b9e2c05d91d89d1ea58c5581ce | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
appukuttancr
2019-04-22 18:57:56 UTC
Oh, wow! Thank you very much! I was already wondering why YouTube did not support this but never realized they did but checked for this. Indeed changing it to null fixes it. Indeed, I put a breakpoint in the property getter and they do check: ... navigator.mediaSession&&!navigator.mediaSession.metadata&&navigator.mediaSession.setActionHandler&& ... Git commit f4722bd0a6ec63b9e2c05d91d89d1ea58c5581ce by Kai Uwe Broulik. Committed on 23/04/2019 at 07:34. Pushed by broulik into branch 'master'. Initialize metadata with null This matches Media Session API spec "A MediaSession has an associated metadata object represented by a MediaMetadata. It is initially null." M +1 -1 extension/content-script.js https://commits.kde.org/plasma-browser-integration/f4722bd0a6ec63b9e2c05d91d89d1ea58c5581ce |