Merge pull request #2111 from MediaBrowser/dev

Dev
This commit is contained in:
Luke 2016-08-27 15:36:29 -04:00 committed by GitHub
commit 0bea5725d3
26 changed files with 81 additions and 20 deletions

View File

@ -989,8 +989,6 @@ namespace MediaBrowser.Api.Playback
} }
} }
arg += string.Format(" -ss {0}", MediaEncoder.GetTimeParameter(TimeSpan.FromSeconds(1).Ticks));
return arg.Trim(); return arg.Trim();
} }

View File

@ -77,6 +77,15 @@ namespace MediaBrowser.Dlna.Profiles
} }
}; };
SubtitleProfiles = new[]
{
new SubtitleProfile
{
Format = "srt",
Method = SubtitleDeliveryMethod.Embed
}
};
ResponseProfiles = new[] ResponseProfiles = new[]
{ {
new ResponseProfile new ResponseProfile

View File

@ -192,6 +192,11 @@ namespace MediaBrowser.Dlna.Profiles
SubtitleProfiles = new[] SubtitleProfiles = new[]
{ {
new SubtitleProfile
{
Format = "srt",
Method = SubtitleDeliveryMethod.Embed
},
new SubtitleProfile new SubtitleProfile
{ {
Format = "srt", Format = "srt",

View File

@ -188,6 +188,11 @@ namespace MediaBrowser.Dlna.Profiles
SubtitleProfiles = new[] SubtitleProfiles = new[]
{ {
new SubtitleProfile
{
Format = "srt",
Method = SubtitleDeliveryMethod.Embed
},
new SubtitleProfile new SubtitleProfile
{ {
Format = "srt", Format = "srt",

View File

@ -340,6 +340,11 @@ namespace MediaBrowser.Dlna.Profiles
SubtitleProfiles = new[] SubtitleProfiles = new[]
{ {
new SubtitleProfile
{
Format = "srt",
Method = SubtitleDeliveryMethod.Embed
},
new SubtitleProfile new SubtitleProfile
{ {
Format = "srt", Format = "srt",

View File

@ -44,5 +44,7 @@
<Conditions /> <Conditions />
</ResponseProfile> </ResponseProfile>
</ResponseProfiles> </ResponseProfiles>
<SubtitleProfiles /> <SubtitleProfiles>
<SubtitleProfile format="srt" method="Embed" />
</SubtitleProfiles>
</Profile> </Profile>

View File

@ -44,5 +44,7 @@
<ContainerProfiles /> <ContainerProfiles />
<CodecProfiles /> <CodecProfiles />
<ResponseProfiles /> <ResponseProfiles />
<SubtitleProfiles /> <SubtitleProfiles>
<SubtitleProfile format="srt" method="Embed" />
</SubtitleProfiles>
</Profile> </Profile>

View File

@ -61,5 +61,7 @@
</CodecProfile> </CodecProfile>
</CodecProfiles> </CodecProfiles>
<ResponseProfiles /> <ResponseProfiles />
<SubtitleProfiles /> <SubtitleProfiles>
<SubtitleProfile format="srt" method="Embed" />
</SubtitleProfiles>
</Profile> </Profile>

View File

@ -86,5 +86,7 @@
<Conditions /> <Conditions />
</ResponseProfile> </ResponseProfile>
</ResponseProfiles> </ResponseProfiles>
<SubtitleProfiles /> <SubtitleProfiles>
<SubtitleProfile format="srt" method="Embed" />
</SubtitleProfiles>
</Profile> </Profile>

View File

@ -81,6 +81,7 @@
</CodecProfiles> </CodecProfiles>
<ResponseProfiles /> <ResponseProfiles />
<SubtitleProfiles> <SubtitleProfiles>
<SubtitleProfile format="srt" method="Embed" />
<SubtitleProfile format="srt" method="External" /> <SubtitleProfile format="srt" method="External" />
</SubtitleProfiles> </SubtitleProfiles>
</Profile> </Profile>

View File

@ -44,5 +44,7 @@
<ContainerProfiles /> <ContainerProfiles />
<CodecProfiles /> <CodecProfiles />
<ResponseProfiles /> <ResponseProfiles />
<SubtitleProfiles /> <SubtitleProfiles>
<SubtitleProfile format="srt" method="Embed" />
</SubtitleProfiles>
</Profile> </Profile>

View File

@ -50,5 +50,7 @@
<ContainerProfiles /> <ContainerProfiles />
<CodecProfiles /> <CodecProfiles />
<ResponseProfiles /> <ResponseProfiles />
<SubtitleProfiles /> <SubtitleProfiles>
<SubtitleProfile format="srt" method="Embed" />
</SubtitleProfiles>
</Profile> </Profile>

View File

@ -78,6 +78,7 @@
</ResponseProfile> </ResponseProfile>
</ResponseProfiles> </ResponseProfiles>
<SubtitleProfiles> <SubtitleProfiles>
<SubtitleProfile format="srt" method="Embed" />
<SubtitleProfile format="srt" method="External" /> <SubtitleProfile format="srt" method="External" />
</SubtitleProfiles> </SubtitleProfiles>
</Profile> </Profile>

View File

@ -82,5 +82,7 @@
</CodecProfile> </CodecProfile>
</CodecProfiles> </CodecProfiles>
<ResponseProfiles /> <ResponseProfiles />
<SubtitleProfiles /> <SubtitleProfiles>
<SubtitleProfile format="srt" method="Embed" />
</SubtitleProfiles>
</Profile> </Profile>

View File

@ -119,6 +119,7 @@
</ResponseProfile> </ResponseProfile>
</ResponseProfiles> </ResponseProfiles>
<SubtitleProfiles> <SubtitleProfiles>
<SubtitleProfile format="srt" method="Embed" />
<SubtitleProfile format="srt" method="External" didlMode="CaptionInfoEx" /> <SubtitleProfile format="srt" method="External" didlMode="CaptionInfoEx" />
</SubtitleProfiles> </SubtitleProfiles>
</Profile> </Profile>

View File

@ -106,5 +106,7 @@
<Conditions /> <Conditions />
</ResponseProfile> </ResponseProfile>
</ResponseProfiles> </ResponseProfiles>
<SubtitleProfiles /> <SubtitleProfiles>
<SubtitleProfile format="srt" method="Embed" />
</SubtitleProfiles>
</Profile> </Profile>

View File

@ -127,5 +127,7 @@
<Conditions /> <Conditions />
</ResponseProfile> </ResponseProfile>
</ResponseProfiles> </ResponseProfiles>
<SubtitleProfiles /> <SubtitleProfiles>
<SubtitleProfile format="srt" method="Embed" />
</SubtitleProfiles>
</Profile> </Profile>

View File

@ -130,5 +130,7 @@
<Conditions /> <Conditions />
</ResponseProfile> </ResponseProfile>
</ResponseProfiles> </ResponseProfiles>
<SubtitleProfiles /> <SubtitleProfiles>
<SubtitleProfile format="srt" method="Embed" />
</SubtitleProfiles>
</Profile> </Profile>

View File

@ -106,5 +106,7 @@
<Conditions /> <Conditions />
</ResponseProfile> </ResponseProfile>
</ResponseProfiles> </ResponseProfiles>
<SubtitleProfiles /> <SubtitleProfiles>
<SubtitleProfile format="srt" method="Embed" />
</SubtitleProfiles>
</Profile> </Profile>

View File

@ -105,5 +105,7 @@
<Conditions /> <Conditions />
</ResponseProfile> </ResponseProfile>
</ResponseProfiles> </ResponseProfiles>
<SubtitleProfiles /> <SubtitleProfiles>
<SubtitleProfile format="srt" method="Embed" />
</SubtitleProfiles>
</Profile> </Profile>

View File

@ -105,5 +105,7 @@
<Conditions /> <Conditions />
</ResponseProfile> </ResponseProfile>
</ResponseProfiles> </ResponseProfiles>
<SubtitleProfiles /> <SubtitleProfiles>
<SubtitleProfile format="srt" method="Embed" />
</SubtitleProfiles>
</Profile> </Profile>

View File

@ -99,5 +99,7 @@
<Conditions /> <Conditions />
</ResponseProfile> </ResponseProfile>
</ResponseProfiles> </ResponseProfiles>
<SubtitleProfiles /> <SubtitleProfiles>
<SubtitleProfile format="srt" method="Embed" />
</SubtitleProfiles>
</Profile> </Profile>

View File

@ -99,5 +99,7 @@
<Conditions /> <Conditions />
</ResponseProfile> </ResponseProfile>
</ResponseProfiles> </ResponseProfiles>
<SubtitleProfiles /> <SubtitleProfiles>
<SubtitleProfile format="srt" method="Embed" />
</SubtitleProfiles>
</Profile> </Profile>

View File

@ -110,5 +110,7 @@
<Conditions /> <Conditions />
</ResponseProfile> </ResponseProfile>
</ResponseProfiles> </ResponseProfiles>
<SubtitleProfiles /> <SubtitleProfiles>
<SubtitleProfile format="srt" method="Embed" />
</SubtitleProfiles>
</Profile> </Profile>

View File

@ -117,5 +117,7 @@
<Conditions /> <Conditions />
</ResponseProfile> </ResponseProfile>
</ResponseProfiles> </ResponseProfiles>
<SubtitleProfiles /> <SubtitleProfiles>
<SubtitleProfile format="srt" method="Embed" />
</SubtitleProfiles>
</Profile> </Profile>

View File

@ -50,5 +50,7 @@
<ContainerProfiles /> <ContainerProfiles />
<CodecProfiles /> <CodecProfiles />
<ResponseProfiles /> <ResponseProfiles />
<SubtitleProfiles /> <SubtitleProfiles>
<SubtitleProfile format="srt" method="Embed" />
</SubtitleProfiles>
</Profile> </Profile>