setPlaybackRate promise doesn't resolve or reject
See original GitHub issueThanks 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:
- Created 6 years ago
- Comments:10 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@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.
Seems to work on my end http://jsfiddle.net/luwes/wd0kfdw6/