OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/renderer/media/websourcebuffer_impl.h" | 5 #include "content/renderer/media/websourcebuffer_impl.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "base/float_util.h" | 9 #include "base/float_util.h" |
10 #include "media/filters/chunk_demuxer.h" | 10 #include "media/filters/chunk_demuxer.h" |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 void WebSourceBufferImpl::setAppendWindowEnd(double end) { | 124 void WebSourceBufferImpl::setAppendWindowEnd(double end) { |
125 DCHECK_GE(end, 0); | 125 DCHECK_GE(end, 0); |
126 append_window_end_ = DoubleToTimeDelta(end); | 126 append_window_end_ = DoubleToTimeDelta(end); |
127 } | 127 } |
128 | 128 |
129 void WebSourceBufferImpl::removedFromMediaSource() { | 129 void WebSourceBufferImpl::removedFromMediaSource() { |
130 demuxer_->RemoveId(id_); | 130 demuxer_->RemoveId(id_); |
131 demuxer_ = NULL; | 131 demuxer_ = NULL; |
132 } | 132 } |
133 | 133 |
| 134 void WebSourceBufferImpl::OnNewInitSegment( |
| 135 const media::InitSegment& init_segment, |
| 136 bool active_track_flag) { |
| 137 // BIG TODO: continue WIP from here: Blink integration+PhilipJ's patch |
| 138 } |
| 139 |
134 } // namespace content | 140 } // namespace content |
OLD | NEW |