mediaelement / mediaelement-plugins

Plugins for the main mediaelement project
405 stars 137 forks source link

how do i add a subtitle in a11y plugin #185

Open OttoMichael opened 3 years ago

OttoMichael commented 3 years ago

I have a problem with the a11y plugin. How can I declare a subtitle in the a11y plugin?

i have try this, but it didn't work

pjotrvdh commented 3 years ago

I'm having the same problem. I am trying to add accessibility to video's...

*edit

I have a problem with the a11y plugin. How can I declare a subtitle in the a11y plugin?

i have try this, but it didn't work

Apperantly, you need to enable the subtitle in the features. the following settings work for me

new MediaElementPlayer('player1', {
    features: [
        'playpause',
        'current',
        'progress',
        'duration',
        'volume',
        'tracks',
        'a11y',
        'fullscreen'
    ],
});

The only problem I have now is that enabling the audio description it replaces the audio of the video in stead of adding it.