philipwatson / videojsx-vast-plugin

A video.js plugin to allow the player to serve adverts using VAST
Other
34 stars 24 forks source link

Add remaining time message #46

Closed nachoaguirre closed 2 months ago

nachoaguirre commented 2 months ago

Allows to display a message with the time remaining until the current ad ends. It also allows to add a play/pause and mute/unmute buttons next to the message at the bottom of the player.

adds two new options to the plugin: displayRemainingTime and displayRemainingTimeIcons. Both boolean and false by default.

Demo: videojsx-remaining

philipwatson commented 2 months ago

Looks great! Will have a closer look at your PRs tomorrow (been busy last couple of days).

Btw.. one thing that comes to mind when watching your demo here: localisation.. for the non-english speaking folks. I'll add that to the todo list, cheers.

nachoaguirre commented 2 months ago

Looks great! Will have a closer look at your PRs tomorrow (been busy last couple of days).

Btw.. one thing that comes to mind when watching your demo here: localisation.. for the non-english speaking folks. I'll add that to the todo list, cheers.

Sure! I have an implementation to be able to define the labels of "skip", "skip in x..." and the "remaining time" from the plugin config... once we get out with the current PRs I'll send another one with this feat