question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Edge: play() causes "play" event but video doesn't play

See original GitHub issue

Expected Behavior

I’ve got a <vue-vimeo-player> (which is a thin wrapper around this SDK) in my app. There’s a “play” button that sends the play() event to the video. Video is a private video, although I think the issue also happens with public ones.

Expected behaviour (and actual behaviour in browsers other than Edge) is that the video starts playing and then the “play” event is fired.

Actual Behavior

In Edge, the “play” event is fired but the video doesn’t start playing. With {controls: false} there is no visual feedback of this. If I set {controls: true} the video goes dark and has a loading spinner forever.

Steps to Reproduce

  1. Check out this repo: https://github.com/fishpercolator/edge-vimeo
  2. yarn && yarn dev
  3. Visit http://localhost:3000/ in Edge browser.
  4. Click the “Play” button.

All the relevant code is here on this page. Afaict from the vue-vimeo-player sources, the Vue methods and events are just proxies to the player.js methods and events with no additional Vue magick on top.

Thanks for your help!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
pedantic-gitcommented, Jul 30, 2020

Hi @luwes - as mentioned in my comment above, I can reproduce the issue with vanilla JS. Vue events don’t work the way you’ve described (they’re different from the setting of properties).

However, I appreciate that while I’m still confident this is a bug, non-Chromium Edge is now not a priority for anyone.

0reactions
luwescommented, Jul 29, 2020

I think this might be caused by the async nature of Vue rendering where if you would set an attribute/property but it’s actually called on the next frame because of the VDOM. this in turn makes the browser think it’s not a user gesture and rejects the play promise…

closing as this is something that would better be discussed on Stackoverflow.

Read more comments on GitHub >

github_iconTop Results From Across the Web

New Edge browser can't play videos - Microsoft Community
I downloaded and set up the new Microsoft Edge browser this morning. I meticulously went through all the settings, ensuring i have it...
Read more >
Microsoft Edge Not Playing Videos? Try These 7 Fixes
If Edge can play videos while using InPrivate mode, go to edge://extensions and disable all extensions. Then, use the toggles to enable them...
Read more >
Top 7 Ways to Fix Videos Not Playing in Microsoft Edge
1. Try InPrivate Window. The first thing you should do is try playing a video in an InPrivate window in Edge. This will...
Read more >
Video auto play is not working in Safari and Chrome desktop ...
I dont know why it works :( reason is because you are waiting for the video to be loaded within the buffer then...
Read more >
HTMLMediaElement.play() - Web APIs | MDN
The HTMLMediaElement play() method attempts to begin playback of the ... Provided if the user agent (browser) or operating system doesn't ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found