Set is_final and start_time for online websocket server. (#342)

* Set is_final and start_time for online websocket server.

* Convert timestamps to a json array
This commit is contained in:
Fangjun Kuang
2023-09-25 15:12:07 +08:00
committed by GitHub
parent c2518a5826
commit 552a267c23
10 changed files with 64 additions and 275 deletions

View File

@@ -66,7 +66,9 @@ class OnlineStream {
// Initially, it is 0. It is always less than NumFramesReady().
//
// The returned reference is valid as long as this object is alive.
int32_t &GetNumProcessedFrames();
int32_t &GetNumProcessedFrames(); // It's reset after calling Reset()
int32_t GetNumFramesSinceStart() const;
int32_t &GetCurrentSegment();