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/android/media_source_delegate.h" | 5 #include "content/renderer/media/android/media_source_delegate.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
292 } | 292 } |
293 | 293 |
294 void MediaSourceDelegate::SeekInternal(const base::TimeDelta& seek_time) { | 294 void MediaSourceDelegate::SeekInternal(const base::TimeDelta& seek_time) { |
295 DCHECK(media_loop_->BelongsToCurrentThread()); | 295 DCHECK(media_loop_->BelongsToCurrentThread()); |
296 DCHECK(IsSeeking()); | 296 DCHECK(IsSeeking()); |
297 chunk_demuxer_->Seek(seek_time, base::Bind( | 297 chunk_demuxer_->Seek(seek_time, base::Bind( |
298 &MediaSourceDelegate::OnDemuxerSeekDone, | 298 &MediaSourceDelegate::OnDemuxerSeekDone, |
299 media_weak_factory_.GetWeakPtr())); | 299 media_weak_factory_.GetWeakPtr())); |
300 } | 300 } |
301 | 301 |
302 void MediaSourceDelegate::SetTotalBytes(int64 total_bytes) { | |
303 NOTIMPLEMENTED(); | |
scherkus (not reviewing)
2014/03/28 20:54:09
case. in. point. :)
| |
304 } | |
305 | |
306 void MediaSourceDelegate::AddBufferedByteRange(int64 start, int64 end) { | |
307 NOTIMPLEMENTED(); | |
308 } | |
309 | |
310 void MediaSourceDelegate::AddBufferedTimeRange(base::TimeDelta start, | 302 void MediaSourceDelegate::AddBufferedTimeRange(base::TimeDelta start, |
311 base::TimeDelta end) { | 303 base::TimeDelta end) { |
312 buffered_time_ranges_.Add(start, end); | 304 buffered_time_ranges_.Add(start, end); |
313 } | 305 } |
314 | 306 |
315 void MediaSourceDelegate::SetDuration(base::TimeDelta duration) { | 307 void MediaSourceDelegate::SetDuration(base::TimeDelta duration) { |
316 DCHECK(main_loop_->BelongsToCurrentThread()); | 308 DCHECK(main_loop_->BelongsToCurrentThread()); |
317 DVLOG(1) << __FUNCTION__ << "(" << duration.InSecondsF() << ") : " | 309 DVLOG(1) << __FUNCTION__ << "(" << duration.InSecondsF() << ") : " |
318 << demuxer_client_id_; | 310 << demuxer_client_id_; |
319 | 311 |
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
765 // current time have been garbage collected or removed by the web app, this is | 757 // current time have been garbage collected or removed by the web app, this is |
766 // unlikely. This may cause unexpected playback stall due to seek pending an | 758 // unlikely. This may cause unexpected playback stall due to seek pending an |
767 // append for a GOP prior to the last GOP demuxed. | 759 // append for a GOP prior to the last GOP demuxed. |
768 // TODO(wolenetz): Remove the possibility for this seek to cause unexpected | 760 // TODO(wolenetz): Remove the possibility for this seek to cause unexpected |
769 // player stall by replaying cached data since last keyframe in browser player | 761 // player stall by replaying cached data since last keyframe in browser player |
770 // rather than issuing browser seek. See http://crbug.com/304234. | 762 // rather than issuing browser seek. See http://crbug.com/304234. |
771 return seek_time; | 763 return seek_time; |
772 } | 764 } |
773 | 765 |
774 } // namespace content | 766 } // namespace content |
OLD | NEW |