philipwatson / videojsx-vast-plugin

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

Add custom messages config #47

Closed nachoaguirre closed 2 weeks ago

nachoaguirre commented 3 weeks ago

This PR adds configs to customize the messages displayed in the UI, specifically the "Skip", "Skip in x..." and "This ad will end in x" messages.

The defaults are:

messages: {
    skip: 'Skip',
    skipCountdown: 'Skip in {seconds}...',
    remainingTime: 'This ad will end in {seconds}',
  },

As placeholder the {seconds} token is replaced with the seconds dynamically.

philipwatson commented 2 weeks ago

Looks good to me. thank you.