1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
media / filters / source_buffer_parse_warnings.h [blame]
// Copyright 2017 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MEDIA_FILTERS_SOURCE_BUFFER_PARSE_WARNINGS_H_
#define MEDIA_FILTERS_SOURCE_BUFFER_PARSE_WARNINGS_H_
#include "base/functional/callback_forward.h"
namespace media {
// Non-fatal parsing, coded frame processing, or buffering warning. These are
// intended to be used for telemetry reporting to better understand the
// frequency at which they occur.
enum class SourceBufferParseWarning {
kKeyframeTimeGreaterThanDependant, // Reported up to once per track.
kMuxedSequenceMode, // Reported up to once per SourceBuffer.
// Reported up to once per FrameProcessor::ProcessFrames():
kGroupEndTimestampDecreaseWithinMediaSegment,
};
// For reporting telemetry of a non-fatal SourceBufferParseWarning.
using SourceBufferParseWarningCB =
base::RepeatingCallback<void(SourceBufferParseWarning)>;
} // namespace media
#endif // MEDIA_FILTERS_SOURCE_BUFFER_PARSE_WARNINGS_H_