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

Unified Diff: media/mojo/services/mojo_demuxer_stream_impl.cc

Issue 1935873002: Implement disabling and enabling media tracks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@track-control2
Patch Set: Updated comments + dchecks in ffmpeg demux stream Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: media/mojo/services/mojo_demuxer_stream_impl.cc
diff --git a/media/mojo/services/mojo_demuxer_stream_impl.cc b/media/mojo/services/mojo_demuxer_stream_impl.cc
index 7a960b4bec6210cd085366b0099be8e1c97ccb73..a097ff852e303183d72b4d07951749ddd4e6a04c 100644
--- a/media/mojo/services/mojo_demuxer_stream_impl.cc
+++ b/media/mojo/services/mojo_demuxer_stream_impl.cc
@@ -79,6 +79,14 @@ void MojoDemuxerStreamImpl::EnableBitstreamConverter() {
stream_->EnableBitstreamConverter();
}
+void MojoDemuxerStreamImpl::enabled(const enabledCallback& callback) {
+ callback.Run(stream_->enabled());
+}
+
+void MojoDemuxerStreamImpl::set_enabled(bool enabled, int64_t time_usec) {
+ stream_->set_enabled(enabled, base::TimeDelta::FromMicroseconds(time_usec));
+}
+
void MojoDemuxerStreamImpl::OnBufferReady(
const ReadCallback& callback,
media::DemuxerStream::Status status,

Powered by Google App Engine
This is Rietveld 408576698