mirror of https://github.com/jellyfin/jellyfin.git
- enable seek function when direct streaming over DLNA
This commit is contained in:
parent
8b9ff893b3
commit
5b5ae1ef52
|
@ -151,10 +151,12 @@ namespace MediaBrowser.Model.Dlna
|
||||||
DlnaFlags.InteractiveTransferMode |
|
DlnaFlags.InteractiveTransferMode |
|
||||||
DlnaFlags.DlnaV15;
|
DlnaFlags.DlnaV15;
|
||||||
|
|
||||||
// if (isDirectStream)
|
if (isDirectStream)
|
||||||
// {
|
{
|
||||||
// flagValue = flagValue | DlnaFlags.ByteBasedSeek;
|
flagValue |= DlnaFlags.ByteBasedSeek;
|
||||||
// }
|
}
|
||||||
|
|
||||||
|
// Time based seek is curently disabled when streaming. On LG CX3 adding DlnaFlags.TimeBasedSeek and orgPn causes the DLNA playback to fail (format not supported). Further investigations are needed before enabling the remaining code paths.
|
||||||
// else if (runtimeTicks.HasValue)
|
// else if (runtimeTicks.HasValue)
|
||||||
// {
|
// {
|
||||||
// flagValue = flagValue | DlnaFlags.TimeBasedSeek;
|
// flagValue = flagValue | DlnaFlags.TimeBasedSeek;
|
||||||
|
@ -209,6 +211,11 @@ namespace MediaBrowser.Model.Dlna
|
||||||
{
|
{
|
||||||
contentFeatureList.Add(orgOp.TrimStart(';') + orgCi + dlnaflags);
|
contentFeatureList.Add(orgOp.TrimStart(';') + orgCi + dlnaflags);
|
||||||
}
|
}
|
||||||
|
else if (isDirectStream)
|
||||||
|
{
|
||||||
|
// orgOp should be added all the time once the time based seek is resolved for transcoded streams
|
||||||
|
contentFeatureList.Add("DLNA.ORG_PN=" + orgPn + orgOp + orgCi + dlnaflags);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
contentFeatureList.Add("DLNA.ORG_PN=" + orgPn + orgCi + dlnaflags);
|
contentFeatureList.Add("DLNA.ORG_PN=" + orgPn + orgCi + dlnaflags);
|
||||||
|
|
Loading…
Reference in New Issue