mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-31 14:33:54 -04:00
render ssa/ass subs in browser
This commit is contained in:
parent
ddbf183df5
commit
1071a5a5f3
@ -160,6 +160,16 @@ namespace MediaBrowser.Model.Dto
|
|||||||
|
|
||||||
public bool? IsSecondaryAudio(MediaStream stream)
|
public bool? IsSecondaryAudio(MediaStream stream)
|
||||||
{
|
{
|
||||||
|
// Look for the first audio track marked as default
|
||||||
|
foreach (MediaStream currentStream in MediaStreams)
|
||||||
|
{
|
||||||
|
if (currentStream.Type == MediaStreamType.Audio && currentStream.IsDefault)
|
||||||
|
{
|
||||||
|
return currentStream.Index != stream.Index;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Look for the first audio track
|
||||||
foreach (MediaStream currentStream in MediaStreams)
|
foreach (MediaStream currentStream in MediaStreams)
|
||||||
{
|
{
|
||||||
if (currentStream.Type == MediaStreamType.Audio)
|
if (currentStream.Type == MediaStreamType.Audio)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user