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

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

Issue 2684103005: Allow media track switching. (Closed)
Patch Set: Fixed comments Created 3 years, 8 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
« no previous file with comments | « media/base/fake_audio_renderer_sink.cc ('k') | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_BASE_VIDEO_RENDERER_H_ 5 #ifndef MEDIA_BASE_VIDEO_RENDERER_H_
6 #define MEDIA_BASE_VIDEO_RENDERER_H_ 6 #define MEDIA_BASE_VIDEO_RENDERER_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "media/base/media_export.h" 10 #include "media/base/media_export.h"
(...skipping 15 matching lines...) Expand all
26 26
27 // Initializes a VideoRenderer with |stream|, executing |init_cb| upon 27 // Initializes a VideoRenderer with |stream|, executing |init_cb| upon
28 // completion. If initialization fails, only |init_cb| 28 // completion. If initialization fails, only |init_cb|
29 // (not RendererClient::OnError) will be called. 29 // (not RendererClient::OnError) will be called.
30 // 30 //
31 // |cdm_context| can be used to handle encrypted streams. May be null if the 31 // |cdm_context| can be used to handle encrypted streams. May be null if the
32 // stream is not encrypted. 32 // stream is not encrypted.
33 // 33 //
34 // |wall_clock_time_cb| is used to convert media timestamps into wallclock 34 // |wall_clock_time_cb| is used to convert media timestamps into wallclock
35 // timestamps. 35 // timestamps.
36 //
37 // VideoRenderer may be reinitialized for playback of a different demuxer
38 // stream by calling Initialize again when the renderer is in a flushed
39 // state (i.e. after Flush call, but before StartPlayingFrom). This is used
40 // for media track switching.
36 virtual void Initialize(DemuxerStream* stream, 41 virtual void Initialize(DemuxerStream* stream,
37 CdmContext* cdm_context, 42 CdmContext* cdm_context,
38 RendererClient* client, 43 RendererClient* client,
39 const TimeSource::WallClockTimeCB& wall_clock_time_cb, 44 const TimeSource::WallClockTimeCB& wall_clock_time_cb,
40 const PipelineStatusCB& init_cb) = 0; 45 const PipelineStatusCB& init_cb) = 0;
41 46
42 // Discards any video data and stops reading from |stream|, executing 47 // Discards any video data and stops reading from |stream|, executing
43 // |callback| when completed. 48 // |callback| when completed.
44 // 49 //
45 // Clients should expect |buffering_state_cb| to be called with 50 // Clients should expect |buffering_state_cb| to be called with
(...skipping 12 matching lines...) Expand all
58 virtual void OnTimeProgressing() = 0; 63 virtual void OnTimeProgressing() = 0;
59 virtual void OnTimeStopped() = 0; 64 virtual void OnTimeStopped() = 0;
60 65
61 private: 66 private:
62 DISALLOW_COPY_AND_ASSIGN(VideoRenderer); 67 DISALLOW_COPY_AND_ASSIGN(VideoRenderer);
63 }; 68 };
64 69
65 } // namespace media 70 } // namespace media
66 71
67 #endif // MEDIA_BASE_VIDEO_RENDERER_H_ 72 #endif // MEDIA_BASE_VIDEO_RENDERER_H_
OLDNEW
« no previous file with comments | « media/base/fake_audio_renderer_sink.cc ('k') | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698