mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix subtitles in ms edge
This commit is contained in:
parent
71811cb9e3
commit
4f48507a2d
12 changed files with 231 additions and 25 deletions
|
@ -512,11 +512,9 @@
|
|||
|
||||
function enableNativeTrackSupport(track) {
|
||||
|
||||
if (browserInfo.safari) {
|
||||
if (navigator.userAgent.toLowerCase().indexOf('os x') == -1) {
|
||||
// Leave it to apple to have different behavior between safari on ios vs osx
|
||||
return false;
|
||||
}
|
||||
if (browserInfo.safari && browserInfo.mobile) {
|
||||
// Leave it to apple to have different behavior between safari on ios vs osx
|
||||
return false;
|
||||
}
|
||||
|
||||
if (browserInfo.firefox) {
|
||||
|
@ -648,7 +646,7 @@
|
|||
console.log('expectedId: ' + expectedId + '--currentTrack.Id:' + currentTrack.id);
|
||||
|
||||
// IE doesn't support track id
|
||||
if (browserInfo.msie) {
|
||||
if (browserInfo.msie || browserInfo.edge) {
|
||||
if (trackIndex == i) {
|
||||
mode = 1; // show this track
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue