mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
[ATS-873] Fix Subtitles in audio files (#6742)
* ATS-873 Fix Subtitiles in audio files * ATS-873 Fix unit tests
This commit is contained in:
parent
efdc63bffd
commit
e3029b12b7
@ -1,4 +1,4 @@
|
||||
<video controls>
|
||||
<video controls [ngClass]="{'adf-audio-file': mimeType && mimeType.startsWith('audio')}">
|
||||
<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>
|
||||
|
@ -7,4 +7,9 @@
|
||||
max-height: 90vh;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
video.adf-audio-file::-webkit-media-text-track-display {
|
||||
-webkit-transform: translateY(-50%) !important;
|
||||
transform: translateY(-50%) !important;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user