From ee2f89b4f6bb659d9787b96ad6580b9433d075ed Mon Sep 17 00:00:00 2001 From: Marc Obaldo Date: Fri, 6 Dec 2019 18:24:28 +0800 Subject: [PATCH] Added HasEndList property to detect if stream has ended for PlayListType=Event --- src/m3uParser/Model/Extm3u.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/m3uParser/Model/Extm3u.cs b/src/m3uParser/Model/Extm3u.cs index af80f8a..e7fc65b 100644 --- a/src/m3uParser/Model/Extm3u.cs +++ b/src/m3uParser/Model/Extm3u.cs @@ -11,6 +11,7 @@ namespace m3uParser.Model public class Extm3u { public string PlayListType { get; set; } + public bool HasEndList { get; set; } public int? TargetDuration { get; set; } public int? Version { get; set; } public int? MediaSequence { get; set; } @@ -78,6 +79,7 @@ internal Extm3u(string content) break; case "EXT-X-ENDLIST": + this.HasEndList = true; break; default: