From 23e87450c79242ca2cf4a20dc090f0acb01f0ce0 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Tue, 5 Mar 2013 12:25:40 +0100 Subject: [PATCH] More metadata improvements - now has "vod" and "live" data to indicate stream type, as well as "buffer_window" to give information about the size of the intended buffer length. --- lib/dtsc.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/dtsc.cpp b/lib/dtsc.cpp index 2ccf4587..f5e90b8c 100644 --- a/lib/dtsc.cpp +++ b/lib/dtsc.cpp @@ -322,6 +322,8 @@ void DTSC::Stream::updateHeaders(){ } metadata["keylen"].append(buffers[keyframes[0].b]["time"].asInt() - buffers[keyframes[1].b]["time"].asInt()); metadata["lastms"] = buffers[keyframes[0].b]["time"].asInt(); + metadata["buffer_window"] = (long long int)buffertime; + metadata["live"] = true; metadata.toPacked(); updateRingHeaders(); } @@ -496,6 +498,8 @@ void DTSC::File::readHeader(int pos){ frames[i + 1] = metadata["keybpos"][i].asInt(); } } + metadata["vod"] = true; + metadata.toPacked(); } /// Reads the packet available at the current file position.