[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:
Pablo Martinez Garcia 2021-02-26 17:58:44 +01:00 committed by GitHub
parent efdc63bffd
commit e3029b12b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,4 @@
<video controls> <video controls [ngClass]="{'adf-audio-file': mimeType && mimeType.startsWith('audio')}">
<source [src]="urlFile" [type]="mimeType" (error)="onMediaPlayerError()"/> <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"/> <track *ngFor="let track of tracks" [kind]="track.kind" [label]="track.label" [srclang]="track.srclang" [src]="track.src"/>
</video> </video>

View File

@ -7,4 +7,9 @@
max-height: 90vh; max-height: 90vh;
max-width: 100%; max-width: 100%;
} }
video.adf-audio-file::-webkit-media-text-track-display {
-webkit-transform: translateY(-50%) !important;
transform: translateY(-50%) !important;
}
} }