diff options
author | Jacques Samain <jsamain+fdio@cisco.com> | 2017-07-25 15:32:54 +0200 |
---|---|---|
committer | Jacques Samain <jsamain+fdio@cisco.com> | 2017-07-25 15:32:54 +0200 |
commit | 0e275345e28c34f2c6b91a75f44ac93034ae477c (patch) | |
tree | 0b94ec17f395fce7ae1015200d45bd61ce0112a8 /Input/MediaObject.h | |
parent | ce4d018aa8185da0bbf5445eaf54d88700f1a381 (diff) |
Handling live MPDs with variable segments duration
Change-Id: I074d8863a9afb47815e47bf663b87e7f663890b9
Signed-off-by: Jacques Samain <jsamain+fdio@cisco.com>
Diffstat (limited to 'Input/MediaObject.h')
-rw-r--r-- | Input/MediaObject.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/Input/MediaObject.h b/Input/MediaObject.h index 1edd69af..24c2995b 100644 --- a/Input/MediaObject.h +++ b/Input/MediaObject.h @@ -59,23 +59,26 @@ public: void SetDASHReceiver(input::DASHReceiver *_dashReceiver); uint32_t GetRepresentationBandwidth(); uint32_t GetRepresentationHeight(); - int GetRepresentationID(); + std::string GetRepresentationID(); + uint64_t GetSegmentDuration(); + void SetSegmentDuration(uint64_t segmentDuration); private: dash::mpd::ISegment *segment; MediaObject *initSeg; dash::mpd::IRepresentation *rep; dash::network::DownloadState state; - uint64_t bps; - bool withFeedBack; + uint64_t bps; + bool withFeedBack; double dnltime; input::DASHReceiver *dashReceiver; adaptation::IAdaptationLogic *adaptationLogic; mutable CRITICAL_SECTION stateLock; mutable CONDITION_VARIABLE stateChanged; - uint32_t representationBandwidth; - uint32_t representationHeight; - int representationId; + uint32_t representationBandwidth; + uint32_t representationHeight; + std::string representationId; + uint64_t segmentDuration; }; } } |