contao / core

Contao 3 → see contao/contao for Contao 4
GNU Lesser General Public License v3.0
492 stars 213 forks source link

mediaelement : Tracks #5294

Open lionel-m opened 11 years ago

lionel-m commented 11 years ago

Can we have the feature tracks (subtitles) as an option in the backend ? (checkbox)

leofeyer commented 11 years ago

Can you please explain this for people who are not working with the mediaelement library every day?

lionel-m commented 11 years ago

Sorry...

If you add :

features: ['tracks']

And a file for subtitles (ex: file.srt)

<video width="640" height="267">
    <source src="video.ogv" type="video/ogg">
    <track kind="subtitles" src="media/file.srt" srclang="en" />
</video>

We have a button (cc) displayed with other options : cc

Example : http://mediaelementjs.com/

We must also specify the language srclang="en" or srclang="fr", etc.

lionel-m commented 10 years ago

Could you please add the mediaelement tickets (this one and #5293) for version 3.2 ?

leofeyer commented 10 years ago

Adding subtitles (and also tracks) seems like a good thing. We just do not have a widget yet, which would allow us to configure it. We'd need a combination of file picker and language drop-down menu, right?

@contao/workgroup-core

lionel-m commented 10 years ago

We'd need a combination of file picker and language drop-down menu, right?

| source | language | label |

Normally, MediaElement automatically adds the label but in English. It would be nice to add our labels.

Ex. : <track kind="subtitles" src="media/mediaelement.srt" srclang="fr" label="Français" />

I tested this option with MediaElement.

lionel-m commented 10 years ago

There is also another type for chapter : <track kind="chapters" src="chapters.srt" srclang="en" />

kind = chapters | subtitles

lionel-m commented 10 years ago

We just do not have a widget yet, which would allow us to configure it.

Why not a flexible widget that we can reuse for other features if needed like MultiColumnWizard :)

lionel-m commented 10 years ago

http://www.sitepoint.com/comprehensive-look-html5-track-element/