DEV Community

alex
alex

Posted on

Video.js plugins / Vimeo

TLDR; Anyone know of a working Vimeo plugin for Video.js?

About the project

I've been working on a project using Video.js to play a stream of videos sourced from both YouTube and Vimeo, using SQL/PHP to retrieve links, custom titles, and descriptions.

The project simulates a community TV channel, in that videos are playing 24/7 and the user cannot pause, rewind, switch between videos, or open videos in a new tab.

The only affordance the user has is to mute the audio and change volume level. I use Video.js components, MuteToggle and VolumeBar. These work fine for YouTube videos, but not for Vimeo.

About the issue

Videos hosted on Vimeo do not respond to the Video.js player mute settings, nor the MuteToggle and VolumeBar components.

I am using an adaptation of the Videojs-Vimeo plugin. It was last updated in 2016.

I think the problem is that the Vimeo plugin I'm using doesn't have code to recognize the MuteToggle and VolumeBar components. I started to try writing this code myself, and also am curious if anyone else has done this?

Questions

(1) Does anyone know of a more recent Video.js Vimeo plugin?
(2) Anyone have tips on modifying Video.js plugins?
(3) Any outstanding thoughts or wisdom on volume control for custom video players that you'd like to pass on?

Lmk if you need to see the code or a snippet to recreate the issue!

Thanks y'all! 🐞

Top comments (0)