Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Side by Side Diff: media/base/text_renderer.h

Issue 23702007: Render inband text tracks in the media pipeline (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2013 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
5 #ifndef MEDIA_BASE_TEXT_RENDERER_H_
6 #define MEDIA_BASE_TEXT_RENDERER_H_
7
8 #include "base/callback.h"
9 #include "media/base/media_export.h"
10 #include "media/base/pipeline_status.h"
11
12 namespace media {
13
14 class Demuxer;
15
16 class MEDIA_EXPORT TextRenderer {
acolwell GONE FROM CHROMIUM 2013/09/12 00:15:15 I don't anticipate us having more than 1 TextRende
Matthew Heaney (Chromium) 2013/09/13 19:51:54 Done.
17 public:
18 TextRenderer();
19 virtual ~TextRenderer();
20
21 // Initialize a TextRenderer with text streams in |demuxer|, executing
22 // |init_cb| upon completion.
23 //
24 // |ended_cb| is executed when all of the text tracks have reached end
25 // of stream.
26 virtual void Initialize(Demuxer* demuxer,
27 const PipelineStatusCB& init_cb,
28 const base::Closure& ended_cb) = 0;
29
30 // Start text track cue decoding and rendering, executing |callback| when
31 // playback is underway.
32 virtual void Play(const base::Closure& callback) = 0;
33
34 // Temporarily suspend decoding and rendering the text track, executing
35 // |callback| when playback has been suspended.
36 virtual void Pause(const base::Closure& callback) = 0;
37
38 // Stop all operations in preparation for being deleted, executing |callback|
39 // when complete.
40 virtual void Stop(const base::Closure& callback) = 0;
41
42 private:
43 DISALLOW_COPY_AND_ASSIGN(TextRenderer);
44 };
45
46 } // namespace media
47
48 #endif // MEDIA_BASE_TEXT_RENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698