blob: 14525c68e2ef59c03088647d5ec55199d994b590 (
plain)
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
30
31
32
33
34
35
36
37
38
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROMECAST_MEDIA_CMA_PIPELINE_AV_PIPELINE_CLIENT_H_
#define CHROMECAST_MEDIA_CMA_PIPELINE_AV_PIPELINE_CLIENT_H_
#include "base/callback.h"
#include "base/time/time.h"
#include "media/base/pipeline_status.h"
namespace chromecast {
namespace media {
struct AvPipelineClient {
typedef base::Callback<void(
base::TimeDelta, base::TimeDelta, base::TimeTicks)> TimeUpdateCB;
AvPipelineClient();
~AvPipelineClient();
// Decryption key status notification.
base::Closure wait_for_key_cb;
// End of stream notification.
base::Closure eos_cb;
// Asynchronous playback error notification.
::media::PipelineStatusCB playback_error_cb;
// Callback used to report the playback statistics.
::media::StatisticsCB statistics_cb;
};
} // namespace media
} // namespace chromecast
#endif // CHROMECAST_MEDIA_CMA_PIPELINE_AV_PIPELINE_CLIENT_H_
|