| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "config.h" | 5 #include "config.h" |
| 6 #include "web/WebMediaPlayerClientImpl.h" | 6 #include "web/WebMediaPlayerClientImpl.h" |
| 7 | 7 |
| 8 #include "core/frame/LocalFrame.h" | 8 #include "core/frame/LocalFrame.h" |
| 9 #include "core/html/HTMLMediaElement.h" | 9 #include "core/html/HTMLMediaElement.h" |
| 10 #include "core/html/TimeRanges.h" | 10 #include "core/html/TimeRanges.h" |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 m_webMediaPlayer->setRate(rate); | 217 m_webMediaPlayer->setRate(rate); |
| 218 } | 218 } |
| 219 | 219 |
| 220 MediaPlayer::NetworkState WebMediaPlayerClientImpl::networkState() const | 220 MediaPlayer::NetworkState WebMediaPlayerClientImpl::networkState() const |
| 221 { | 221 { |
| 222 if (m_webMediaPlayer) | 222 if (m_webMediaPlayer) |
| 223 return static_cast<MediaPlayer::NetworkState>(m_webMediaPlayer->networkS
tate()); | 223 return static_cast<MediaPlayer::NetworkState>(m_webMediaPlayer->networkS
tate()); |
| 224 return MediaPlayer::Empty; | 224 return MediaPlayer::Empty; |
| 225 } | 225 } |
| 226 | 226 |
| 227 MediaPlayer::ReadyState WebMediaPlayerClientImpl::readyState() const | |
| 228 { | |
| 229 if (m_webMediaPlayer) | |
| 230 return static_cast<MediaPlayer::ReadyState>(m_webMediaPlayer->readyState
()); | |
| 231 return MediaPlayer::HaveNothing; | |
| 232 } | |
| 233 | |
| 234 double WebMediaPlayerClientImpl::maxTimeSeekable() const | 227 double WebMediaPlayerClientImpl::maxTimeSeekable() const |
| 235 { | 228 { |
| 236 if (m_webMediaPlayer) | 229 if (m_webMediaPlayer) |
| 237 return m_webMediaPlayer->maxTimeSeekable(); | 230 return m_webMediaPlayer->maxTimeSeekable(); |
| 238 return 0.0; | 231 return 0.0; |
| 239 } | 232 } |
| 240 | 233 |
| 241 PassRefPtr<TimeRanges> WebMediaPlayerClientImpl::buffered() const | 234 PassRefPtr<TimeRanges> WebMediaPlayerClientImpl::buffered() const |
| 242 { | 235 { |
| 243 if (m_webMediaPlayer) | 236 if (m_webMediaPlayer) |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 | 394 |
| 402 void WebMediaPlayerClientImpl::AudioClientImpl::setFormat(size_t numberOfChannel
s, float sampleRate) | 395 void WebMediaPlayerClientImpl::AudioClientImpl::setFormat(size_t numberOfChannel
s, float sampleRate) |
| 403 { | 396 { |
| 404 if (m_client) | 397 if (m_client) |
| 405 m_client->setFormat(numberOfChannels, sampleRate); | 398 m_client->setFormat(numberOfChannels, sampleRate); |
| 406 } | 399 } |
| 407 | 400 |
| 408 #endif | 401 #endif |
| 409 | 402 |
| 410 } // namespace blink | 403 } // namespace blink |
| OLD | NEW |