jmvtechnology / Clappr-Subtitle

SubRip (srt) subtitle support for the Clappr player
17 stars 11 forks source link

Webvtt (vtt) subtitle support for the Clappr player or not #8

Open vxman opened 7 years ago

vxman commented 7 years ago

Webvtt (vtt) subtitle support for the Clappr player or not, can someone advise? ?

tmaiadev commented 7 years ago

Unfortunately not for now. It will support vtt soon, though. So, stay tuned.

ankurss commented 7 years ago

Any update on this ?

tmaiadev commented 7 years ago

@ankurss Working on it, probably a few weeks until I merge it though.

Media182 commented 7 years ago

Any new about VTT support? Looking for this since Clappr can't handle subtitles with HLS sources.

matheusrufca commented 7 years ago

I'm working with HLS streaming and .vtt subtitle support by adding track files to the video. Or using https://github.com/JMVTechnology/Clappr-Subtitle

Media182 commented 7 years ago

HLS + externalTracks with .vtt files does not work for me at the moment with the latest Clappr. With .mp4 videos works perferctly.

Clappr-Subtitle works with SRT captions only now and no language switcher.

matheusrufca commented 7 years ago

@Media182 sorry, my test with Clappr-subtitle is on .srt.

I'm using .vtt without plugins but I'll will open an issue on clappr because I can not change subtitles after choosing one. Both are displayed.

Adding to Clappr options like:

{
    "externalTracks": [{
            "lang": "pt-BR",
            "label": "Português",
            "src": "subtitles/pt-BR.vtt",
            "kind": "subtitles"
        }, {
            "lang": "en-US",
            "label": "Inglês",
            "src": "subtitles/en-US.vtt",
            "kind": "subtitles"
        }
    ]
}

Then setting

var video = document.querySelector('video')
video.textTracks[0].mode = 'showing'

But not working when I set video.textTracks[1].mode = 'disabled'

DmitryPisman commented 6 years ago

Hi. Any news about VTT support for hls vod?