Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

twitter.com - repeatedly clicking a video makes it change to "The media could not be played" #3819

Closed
dholbert opened this issue Nov 27, 2016 · 7 comments

Comments

@dholbert
Copy link

URL: https://twitter.com/ChemistryReacts/status/802988596231897089
Browser / Version: Firefox 53.0
Operating System: Linux
Problem type: Unknown

Steps to Reproduce

  1. Navigate to: https://twitter.com/ChemistryReacts/status/802988596231897089
  2. When the play button appears, click it.
  3. After the video starts, click the video (or its play/pause button) over and over.

Expected Behavior:
Video pauses/plays over and over.

Actual Behavior:
Video pauses/plays a few times, and then suddenly it changes to a black "The media could not be played."

This is a website bug that seems to happen cross-browser -- I'm hitting it in Firefox 53 Nightly, Firefox 50 (release), and Chrome 55 dev-edition. (All on Linux)

Here's a screenshot of the video after it breaks:
Screenshot of video after it breaks

If it matters, I'm on Starbucks WiFi right now. (e.g. it's possible this only happens on rate-limited connections; not sure though)

From webcompat.com with ❤️

@dholbert dholbert changed the title twitter.com - unknown twitter.com - repeatedly clicking a video makes it change to "The media could not be played" Nov 27, 2016
@dholbert
Copy link
Author

(Not sure if there's a better way to reach Twitter developers, but I tweeted at their support account .)

@tsl143
Copy link
Member

tsl143 commented Dec 1, 2016

Just to mention, this happens both on Firefox as well as Chrome.

@magsout
Copy link
Member

magsout commented Dec 22, 2016

@dholbert @tsl143 I can't reproduced on Mac, OS, is it a LInux issue ?

@dholbert
Copy link
Author

Seems to be platform-independent to me. (I reported from Linux, but I just tested & easily reproduced in Firefox 52 DevEdition on MacOS Sierra, and in Chrome 55 on Windows 10 -- using BrowserStack to test those other OSes with clean environments.)

Maybe you're not clicking the video aggressively enough? :)

@wisniewskit
Copy link
Member

I can reproduce this, but it only happens on some videos: the one provided, the one for Jan 15 with the bridge being demolished, the "And they told me electromagnetism wasn't magic" one, the ballon-popping one, and that's as far down as I tried. The rest of the ones along the way are working fine. I can right-click to reload the frames for the failed ones to re-watch them.

The same videos fail for me in Chrome and Firefox, in Gentoo Linux and OSX 10.11, and also Edge in the VirtualBox VM downloadable from Microsoft.

Curiously, the issue does not happen in Safari on the same MacBook I tested Firefox and Chrome in. I can't quite tell why this is the case, but when I look at the network logs while pausing/resuming, Firefox and Chrome keep re-requesting the mpeg2 ts stream, while Safari does not (though I suppose it's possible that Safari could be re-requesting it each time and not showing it in their network log; I haven't sniffed the traffic).

@wisniewskit
Copy link
Member

The fix for this has just landed in bug 1335098. The videos are now pausing/unpausing correctly for me in today's nightly.

@dholbert
Copy link
Author

dholbert commented May 21, 2017

Great! Confirmed -- I can't reproduce anymore in Nightly or in Chrome.

(Also: to clarify, bug 1335098 is classified as a Tech Evang bug, and the fix that landed there was on Twitter's end. Makes sense, given prior comments here.)

@karlcow karlcow added this to the fixed milestone Oct 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants