nkoehler / mat-video

:tv: mat-video is an Angular 8/9+ video player using Material!
https://nkoehler.github.io/mat-video/
MIT License
91 stars 47 forks source link

Missing subtitle changer button #32

Open gittersd opened 5 years ago

gittersd commented 5 years ago

PLEASE FILL THIS OUT IF YOU WANT HELP WITH AN ISSUE!

Bug, feature request, or proposal:

feature

What is the current behavior?

Doesn't give option to disable subtitle or to change track.

What is the expected behavior?

To have previously mentioned features

matiasmagni commented 4 years ago

I'm also notice that subtitles aren't working. Here's my code:

<mat-video [src]="videos[selectedVideoId].getSourceFromQuality(selectedQuality).getUrl()" [quality]="false" [autoplay]="true" class="video">
    <track matVideoTrack default src="/assets/subtitles/video.vtt" kind="subtitles" srclang="en" label="English">
</mat-video>

src/assets/subtitles/video.vtt:

00:00.000 --> 00:02.000
<v.first.loud Esme>It’s a blue apple tree!

00:02.000 --> 00:04.000
<v Mary>No way!

00:04.000 --> 00:06.000
<v Esme>Hee!</v> <i>laughter</i>

00:06.000 --> 00:08.000
<v.loud Mary>That’s awesome!