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/webmediaplayer_android.h" | 5 #include "content/renderer/media/android/webmediaplayer_android.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "base/android/build_info.h" | 9 #include "base/android/build_info.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
667 return 0; | 667 return 0; |
668 } | 668 } |
669 | 669 |
670 unsigned WebMediaPlayerAndroid::videoDecodedByteCount() const { | 670 unsigned WebMediaPlayerAndroid::videoDecodedByteCount() const { |
671 if (media_source_delegate_) | 671 if (media_source_delegate_) |
672 return media_source_delegate_->VideoDecodedByteCount(); | 672 return media_source_delegate_->VideoDecodedByteCount(); |
673 NOTIMPLEMENTED(); | 673 NOTIMPLEMENTED(); |
674 return 0; | 674 return 0; |
675 } | 675 } |
676 | 676 |
| 677 double WebMediaSource::totalFrameDelay() const { |
| 678 NOTIMPLEMENTED(); |
| 679 return 0.0; |
| 680 } |
| 681 |
677 void WebMediaPlayerAndroid::OnMediaMetadataChanged( | 682 void WebMediaPlayerAndroid::OnMediaMetadataChanged( |
678 const base::TimeDelta& duration, int width, int height, bool success) { | 683 const base::TimeDelta& duration, int width, int height, bool success) { |
679 DCHECK(main_thread_checker_.CalledOnValidThread()); | 684 DCHECK(main_thread_checker_.CalledOnValidThread()); |
680 bool need_to_signal_duration_changed = false; | 685 bool need_to_signal_duration_changed = false; |
681 | 686 |
682 if (url_.SchemeIs("file")) | 687 if (url_.SchemeIs("file")) |
683 UpdateNetworkState(WebMediaPlayer::NetworkStateLoaded); | 688 UpdateNetworkState(WebMediaPlayer::NetworkStateLoaded); |
684 | 689 |
685 // Update duration, if necessary, prior to ready state updates that may | 690 // Update duration, if necessary, prior to ready state updates that may |
686 // cause duration() query. | 691 // cause duration() query. |
(...skipping 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1721 player_manager_->EnterFullscreen(player_id_, frame_); | 1726 player_manager_->EnterFullscreen(player_id_, frame_); |
1722 SetNeedsEstablishPeer(false); | 1727 SetNeedsEstablishPeer(false); |
1723 } | 1728 } |
1724 } | 1729 } |
1725 | 1730 |
1726 bool WebMediaPlayerAndroid::canEnterFullscreen() const { | 1731 bool WebMediaPlayerAndroid::canEnterFullscreen() const { |
1727 return player_manager_->CanEnterFullscreen(frame_); | 1732 return player_manager_->CanEnterFullscreen(frame_); |
1728 } | 1733 } |
1729 | 1734 |
1730 } // namespace content | 1735 } // namespace content |
OLD | NEW |