diff --git a/src/loader/playlist-loader.js b/src/loader/playlist-loader.js index 506015a7a5a..7afaeb5945d 100644 --- a/src/loader/playlist-loader.js +++ b/src/loader/playlist-loader.js @@ -237,7 +237,18 @@ class PlaylistLoader extends EventHandler { fragdecryptdata = this.fragmentDecryptdataFromLevelkey(levelkey, sn); var url = result[2] ? this.resolve(result[2], baseurl) : null; tagList.push(result); - frag = {url: url, duration: duration, start: totalduration, sn: sn, level: id, cc: cc, byteRangeStartOffset: byteRangeStartOffset, byteRangeEndOffset: byteRangeEndOffset, decryptdata : fragdecryptdata, programDateTime: programDateTime, tagList: tagList}; + frag = {url: url, + type : type, + duration: duration, + start: totalduration, + sn: sn, + level: id, + cc: cc, + byteRangeStartOffset: byteRangeStartOffset, + byteRangeEndOffset: byteRangeEndOffset, + decryptdata : fragdecryptdata, + programDateTime: programDateTime, + tagList: tagList}; level.fragments.push(frag); totalduration += duration; byteRangeStartOffset = null;