mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-24 11:05:08 +01:00
Add remote control chapter menu
This commit is contained in:
@@ -24,6 +24,12 @@ namespace MediaBrowser.Model.Configuration
|
||||
/// <value>The audio language preference.</value>
|
||||
public string AudioLanguagePreference { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether [play default audio track].
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if [play default audio track]; otherwise, <c>false</c>.</value>
|
||||
public bool PlayDefaultAudioTrack { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the subtitle language preference.
|
||||
/// </summary>
|
||||
@@ -61,6 +67,8 @@ namespace MediaBrowser.Model.Configuration
|
||||
|
||||
public UnratedItem[] BlockUnratedItems { get; set; }
|
||||
|
||||
public SubtitlePlaybackMode SubtitleMode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="UserConfiguration" /> class.
|
||||
/// </summary>
|
||||
@@ -68,6 +76,7 @@ namespace MediaBrowser.Model.Configuration
|
||||
{
|
||||
IsAdministrator = true;
|
||||
|
||||
PlayDefaultAudioTrack = true;
|
||||
EnableRemoteControlOfOtherUsers = true;
|
||||
EnableLiveTvManagement = true;
|
||||
EnableMediaPlayback = true;
|
||||
@@ -79,4 +88,12 @@ namespace MediaBrowser.Model.Configuration
|
||||
BlockUnratedItems = new UnratedItem[] { };
|
||||
}
|
||||
}
|
||||
|
||||
public enum SubtitlePlaybackMode
|
||||
{
|
||||
Default = 0,
|
||||
Always = 1,
|
||||
OnlyForced = 2,
|
||||
None = 3
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
using System;
|
||||
using System.Runtime.Serialization;
|
||||
using MediaBrowser.Model.Entities;
|
||||
using MediaBrowser.Model.Entities;
|
||||
using MediaBrowser.Model.MediaInfo;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
namespace MediaBrowser.Model.Dto
|
||||
{
|
||||
@@ -41,11 +41,27 @@ namespace MediaBrowser.Model.Dto
|
||||
MediaStreams = new List<MediaStream>();
|
||||
}
|
||||
|
||||
public int? DefaultAudioStreamIndex { get; set; }
|
||||
public int? DefaultSubtitleStreamIndex { get; set; }
|
||||
|
||||
[IgnoreDataMember]
|
||||
public MediaStream DefaultAudioStream
|
||||
{
|
||||
get
|
||||
{
|
||||
if (DefaultAudioStreamIndex.HasValue)
|
||||
{
|
||||
var val = DefaultAudioStreamIndex.Value;
|
||||
|
||||
foreach (MediaStream i in MediaStreams)
|
||||
{
|
||||
if (i.Type == MediaStreamType.Audio && i.Index == val)
|
||||
{
|
||||
return i;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
foreach (MediaStream i in MediaStreams)
|
||||
{
|
||||
if (i.Type == MediaStreamType.Audio && i.IsDefault)
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
{
|
||||
public class AudioCodec
|
||||
{
|
||||
public const string AAC = "AAC";
|
||||
public const string MP3 = "MP3";
|
||||
public const string AAC = "aac";
|
||||
public const string MP3 = "mp3";
|
||||
public const string AC3 = "ac3";
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,7 @@ namespace MediaBrowser.Model.MediaInfo
|
||||
{
|
||||
public class Container
|
||||
{
|
||||
public const string MP4 = "MP4";
|
||||
public const string MP4 = "mp4";
|
||||
public const string MKV = "mkv";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,10 @@
|
||||
{
|
||||
public class SubtitleFormat
|
||||
{
|
||||
public const string SRT = "SRT";
|
||||
public const string SRT = "srt";
|
||||
public const string SSA = "ssa";
|
||||
public const string ASS = "ass";
|
||||
public const string VTT = "vtt";
|
||||
public const string SUB = "sub";
|
||||
}
|
||||
}
|
||||
@@ -2,11 +2,13 @@
|
||||
{
|
||||
public class VideoCodec
|
||||
{
|
||||
public const string H263 = "H263";
|
||||
public const string H264 = "H264";
|
||||
public const string H265 = "H265";
|
||||
public const string MPEG4 = "MPEG4";
|
||||
public const string MSMPEG4 = "MSMPEG4";
|
||||
public const string VC1 = "VC1";
|
||||
public const string H263 = "h263";
|
||||
public const string H264 = "h264";
|
||||
public const string H265 = "h265";
|
||||
public const string MPEG4 = "mpeg4";
|
||||
public const string MPEG1 = "mpeg1video";
|
||||
public const string MPEG2 = "mpeg2video";
|
||||
public const string MSMPEG4 = "msmpeg4";
|
||||
public const string VC1 = "vc1";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user