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.

setPlaybackRate promise doesn't resolve or reject

See original GitHub issue

Thanks for taking the feedback and pushing this feature out! I jumped right on it, as the clients are hungry for it.

Expected Behavior

Calling setPlaybackRate either resolves the promise after setting the new rate, or rejects with an error.

Actual Behavior

The promise stays pending and doesn’t resolve or reject.

Steps to Reproduce

I’m calling in a Meteor environment, using the latest v2.1.1.

    // This works as expected
    this.player.getPlaybackRate().then(currentRate => console.log('Current playback rate', currentRate));

    // The returns a promise which never resolves, so neither of these log statements show up
    this.player.setPlaybackRate(rate).then((newRate) => {
      console.log('New playback rate set', newRate);
    }).catch((error) => {
       console.log(`Error setting Vimeo playback rate ${error}`);
    });

I tried making a JSFiddle to test this but the Vimeo Player JS CDN is still at v.2.1.0 so the JSFiddle doesn’t help much 😦.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
letscodehucommented, Sep 26, 2017

@jehartzog it would be nice if the promise gets rejected with a meaningful error in case you try to access it without PRO subscription to avoid unneccessary issues raised if someone encounter it.

1reaction
luwescommented, Sep 7, 2017

Seems to work on my end http://jsfiddle.net/luwes/wd0kfdw6/

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why Promise.all doesn't reject when a non-promise throws an ...
This returned promise will resolve when all of the input's promises have resolved, or if the input iterable contains no promises. It rejects...
Read more >
JavaScript Promise Tutorial – How to Resolve or Reject ...
It produces a value after an asynchronous (aka, async) operation completes successfully, or an error if it does not complete successfully due to ......
Read more >
Promise.any() - JavaScript - MDN Web Docs
It rejects when all of the input's promises reject (including when an empty iterable is passed), with an AggregateError containing an array of...
Read more >
Error handling with promises
Normally, .catch doesn't trigger at all, because there are no errors. ... new Promise((resolve, reject) => { throw new Error("Whoops!
Read more >
6 Ways to Use Promises in Your Javascript Code
Promise has a pair of static methods, resolve and reject , to quickly ... A rejected Promise doesn't have to stay rejected, it...
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