Bug 424609 - Udemy play/pause stopped working since yesterday, skip forward/backward x seconds still works
Summary: Udemy play/pause stopped working since yesterday, skip forward/backward x sec...
Status: REPORTED
Alias: None
Product: plasma-browser-integration
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Kai Uwe Broulik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-24 12:42 UTC by zjeffer
Modified: 2020-07-24 12:52 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zjeffer 2020-07-24 12:42:10 UTC
SUMMARY
Since yesterday, I can't play or pause on Udemy, but I can still skip forward 

STEPS TO REPRODUCE
1. Go to udemy.com, and play a video (you can play a preview for a course, you don't need an account). Example: https://www.udemy.com/course/advanced-css-and-sass/
2. Use dbus commands to play or pause the video
3. Nothing happens.

OBSERVED RESULT
The player does nothing when using media keys on my keyboard, or sending dbus commands using the terminal.
document.querySelector('video').play() in the browser console shows a promise with state "pending". Nothing happens.
document.querySelector('video').pause() returns undefined.

EXPECTED RESULT
The player plays/pauses.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch 5.7.9-arch1-1
KDE Plasma Version: N/A
KDE Frameworks Version: 5.72.0-1
Qt Version: qt5-base: 5.15.0-4

ADDITIONAL INFORMATION
I'm not running KDE plasma, only bspwm with the plasma-browser-integration package.

I'd like to know if this is something on their end or on my end, so can someone test this? Thanks.
Comment 1 Kai Uwe Broulik 2020-07-24 12:50:45 UTC
Given directly calling it through developer console also doesn't work, appears to be a change/breakage on their side. P-b-i also just calls play()/pause() on the video element unless the page registered a Media Session callback, which this page doesn't.

It also doesn't work with ublock and p-b-i disabled, so I'm certain this is a change on that page.
Comment 2 zjeffer 2020-07-24 12:52:25 UTC
I just found that if I send dbus commands very quickly, the video plays while stuttering, so it definitely can control the video.

I did that with this command: 

watch -n 0.01 qdbus org.mpris.MediaPlayer2.plasma-browser-integration /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Play