source_buffer_parse_warnings.h 1.0 KB

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