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

Side by Side Diff: media/mojo/services/mojo_demuxer_stream_adapter.cc

Issue 1935873002: Implement disabling and enabling media tracks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@track-control2
Patch Set: rebase Created 4 years, 5 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "media/mojo/services/mojo_demuxer_stream_adapter.h" 5 #include "media/mojo/services/mojo_demuxer_stream_adapter.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 bool MojoDemuxerStreamAdapter::SupportsConfigChanges() { 64 bool MojoDemuxerStreamAdapter::SupportsConfigChanges() {
65 return true; 65 return true;
66 } 66 }
67 67
68 VideoRotation MojoDemuxerStreamAdapter::video_rotation() { 68 VideoRotation MojoDemuxerStreamAdapter::video_rotation() {
69 NOTIMPLEMENTED(); 69 NOTIMPLEMENTED();
70 return VIDEO_ROTATION_0; 70 return VIDEO_ROTATION_0;
71 } 71 }
72 72
73 bool MojoDemuxerStreamAdapter::enabled() const {
74 return true;
75 }
76
77 void MojoDemuxerStreamAdapter::set_enabled(bool enabled,
78 base::TimeDelta timestamp) {
79 NOTIMPLEMENTED();
80 }
81
82 void MojoDemuxerStreamAdapter::SetStreamRestartedCB(
83 const StreamRestartedCB& cb) {
84 NOTIMPLEMENTED();
85 }
86
73 // TODO(xhwang): Pass liveness here. 87 // TODO(xhwang): Pass liveness here.
74 void MojoDemuxerStreamAdapter::OnStreamReady( 88 void MojoDemuxerStreamAdapter::OnStreamReady(
75 mojom::DemuxerStream::Type type, 89 mojom::DemuxerStream::Type type,
76 mojo::ScopedDataPipeConsumerHandle consumer_handle, 90 mojo::ScopedDataPipeConsumerHandle consumer_handle,
77 mojom::AudioDecoderConfigPtr audio_config, 91 mojom::AudioDecoderConfigPtr audio_config,
78 mojom::VideoDecoderConfigPtr video_config) { 92 mojom::VideoDecoderConfigPtr video_config) {
79 DVLOG(1) << __FUNCTION__; 93 DVLOG(1) << __FUNCTION__;
80 DCHECK_EQ(DemuxerStream::UNKNOWN, type_); 94 DCHECK_EQ(DemuxerStream::UNKNOWN, type_);
81 DCHECK(consumer_handle.is_valid()); 95 DCHECK(consumer_handle.is_valid());
82 96
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 case DemuxerStream::VIDEO: 149 case DemuxerStream::VIDEO:
136 DCHECK(video_config && !audio_config); 150 DCHECK(video_config && !audio_config);
137 video_config_ = video_config.To<VideoDecoderConfig>(); 151 video_config_ = video_config.To<VideoDecoderConfig>();
138 break; 152 break;
139 default: 153 default:
140 NOTREACHED(); 154 NOTREACHED();
141 } 155 }
142 } 156 }
143 157
144 } // namespace media 158 } // namespace media
OLDNEW
« no previous file with comments | « media/mojo/services/mojo_demuxer_stream_adapter.h ('k') | media/renderers/audio_renderer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698