21 enum class Type { AUDIO = 0, VIDEO };
27 std::optional<std::string> source_id;
31 std::string track_identifier;
34 std::optional<uint64_t> bytes_received;
35 std::optional<uint64_t> retransmitted_bytes_received;
36 std::optional<uint64_t> packets_received;
37 std::optional<uint64_t> retransmitted_packets_received;
38 std::optional<uint64_t> packets_lost;
39 std::optional<uint32_t> nack_count;
40 std::optional<uint64_t> bitrate_bps;
43 std::optional<double> jitter;
45 std::optional<double> jitter_buffer_delay;
46 std::optional<double> jitter_buffer_minimum_delay;
49 std::optional<double> processing_delay;
51 std::string mime_type;
52 uint32_t payload_type;
55 std::optional<std::string> decoder_implementation;
56 std::optional<uint32_t> frame_width;
57 std::optional<uint32_t> frame_height;
58 std::optional<uint32_t> frames_per_second;
60 std::optional<uint32_t> frames_received;
61 std::optional<uint32_t> frames_decoded;
62 std::optional<uint32_t> key_frames_decoded;
63 std::optional<uint32_t> frames_dropped;
66 std::optional<double> decode_time;
68 std::optional<uint32_t> pause_count;
69 std::optional<uint32_t> freeze_count;
71 std::optional<double> total_pauses_duration;
72 std::optional<double> total_freezes_duration;
74 std::optional<uint32_t> fir_count;
75 std::optional<uint32_t> pli_count;
88 enum class Level { FULL, SIMPLIFIED };
90 std::string cluster_id;
91 std::string stream_view_id;
92 std::string subscriber_id;
93 std::string stream_id;
96 std::optional<double> total_round_trip_time;
97 std::optional<double> current_round_trip_time;
102 std::vector<std::shared_ptr<const RtsTrackStats>> track_stats;
104 RtsViewerStats() =
default;
114 [[nodiscard]]
virtual std::string to_json(Level level)
const = 0;
116 virtual ~RtsViewerStats() =
default;
119 RtsViewerStats(
const RtsViewerStats&)
noexcept =
default;
120 RtsViewerStats(RtsViewerStats&&) noexcept = default;
121 RtsViewerStats& operator=(RtsViewerStats&&) noexcept = default;
122 RtsViewerStats& operator=(const RtsViewerStats&) noexcept = default;
#define MILLICAST_API
Definition exports.h:51