alfresco-ng2-components/lib/core/viewer/components/media-player.component.html
Pablo Martinez Garcia 5d8d5f56f3
[ATS-854] Add media tracks to player from webvtt rendition (#6626)
* ATS-854 Add media tracks to player from webvtt rendition

* ATS-854 Fix condition

* ATS-854 Fix lint

* ATS-854 Move logic to media player

* ATS-854 Fix angular.json

* ATS-854 Fix error
2021-02-08 09:49:09 +00:00

5 lines
233 B
HTML

<video controls>
<source [src]="urlFile" [type]="mimeType" (error)="onMediaPlayerError()"/>
<track *ngFor="let track of tracks" [kind]="track.kind" [label]="track.label" [srclang]="track.srclang" [src]="track.src"/>
</video>