Open peterjaap opened 6 years ago
Thanks for the suggestion!
Unfortunately, out of the box, Vimeo only allows for 0.5x, 1x, 1.25x, 1.5x and 2x playback speeds in their player control. I can't influence that, at least not on the account level I'm paying for.
There is the JavaScript API to interact with the player and set the playback rate: https://github.com/vimeo/player.js/#setplaybackrateplaybackrate-number-promisenumber-rangeerrorerror
If I set the playback rate to 1.75 that way it actually works, but I can't add it to the player UI.
(let [player (js/Vimeo.Player. (.querySelector js/document "iframe"))]
(.setPlaybackRate player 1.75))
When a "non-standard" playback rate is set, in the player none of the available options is selected. It seems I would have to disable the built in playback speed controls, and implement a fully custom one.
This is certainly an option, but I would have to find a way to make it look good and understandable on the page. The UI look and feel is one thing I'm not particularly good at...
I'll leave the ticket open and hope I'll get back to it at a point in time, but I'm afraid that won't be very soon, there are other things with a similar amount of effort that seem to add more value (like showing a list of videos in the current category to give some context where the viewer currently is at.
If a couple of others chime in here and give a thumbs up on this issue I would be happy to re-prioritize though.
Maybe as a temporary workaround for a technical person like you, try this in the browser console:
new Vimeo.Player(document.querySelector('iframe')).setPlaybackRate(1.75)
Ha awesome!! :+1:
1.5x feels on the slow end and 2x on the fast end. 1.75 would probably hit the sweet spot but I'm not sure Vimeo can do it?