mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix change audio track during playback
This commit is contained in:
parent
fe65e0c3b3
commit
0ff3cf321c
2 changed files with 20 additions and 15 deletions
|
@ -28,7 +28,7 @@ import itemHelper from '../../components/itemHelper';
|
|||
import Screenfull from 'screenfull';
|
||||
import globalize from '../../scripts/globalize';
|
||||
import ServerConnections from '../../components/ServerConnections';
|
||||
import profileBuilder from '../../scripts/browserDeviceProfile';
|
||||
import profileBuilder, { canPlaySecondaryAudio } from '../../scripts/browserDeviceProfile';
|
||||
import { getIncludeCorsCredentials } from '../../scripts/settings/webSettings';
|
||||
import { includesAny } from '../../utils/container.ts';
|
||||
|
||||
|
@ -1557,15 +1557,9 @@ function tryRemoveElement(elem) {
|
|||
}
|
||||
|
||||
canSetAudioStreamIndex() {
|
||||
if (browser.tizen || browser.orsay) {
|
||||
return true;
|
||||
}
|
||||
|
||||
const video = this.#mediaElement;
|
||||
if (video) {
|
||||
if (video.audioTracks) {
|
||||
return true;
|
||||
}
|
||||
return canPlaySecondaryAudio(video);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue