| Index: webkit/media/webmediaplayer_ms.cc
|
| diff --git a/webkit/media/webmediaplayer_ms.cc b/webkit/media/webmediaplayer_ms.cc
|
| index 1c0b1cbba8082640e3d8dcde705752e86c989bdb..23bc638e7340ceb4ff39ac1919bbf609d7b311c7 100644
|
| --- a/webkit/media/webmediaplayer_ms.cc
|
| +++ b/webkit/media/webmediaplayer_ms.cc
|
| @@ -184,18 +184,34 @@ bool WebMediaPlayerMS::supportsSave() const {
|
| return false;
|
| }
|
|
|
| +void WebMediaPlayerMS::seekFloat(float seconds) {
|
| + seek(seconds);
|
| +}
|
| +
|
| void WebMediaPlayerMS::seek(float seconds) {
|
| DCHECK(thread_checker_.CalledOnValidThread());
|
| }
|
|
|
| +void WebMediaPlayerMS::setEndTimeFloat(float seconds) {
|
| + setEndTime(seconds);
|
| +}
|
| +
|
| void WebMediaPlayerMS::setEndTime(float seconds) {
|
| DCHECK(thread_checker_.CalledOnValidThread());
|
| }
|
|
|
| +void WebMediaPlayerMS::setRateFloat(float rate) {
|
| + setRate(rate);
|
| +}
|
| +
|
| void WebMediaPlayerMS::setRate(float rate) {
|
| DCHECK(thread_checker_.CalledOnValidThread());
|
| }
|
|
|
| +void WebMediaPlayerMS::setVolumeFloat(float volume) {
|
| + setVolume(volume);
|
| +}
|
| +
|
| void WebMediaPlayerMS::setVolume(float volume) {
|
| DCHECK(thread_checker_.CalledOnValidThread());
|
| if (!audio_renderer_)
|
| @@ -247,11 +263,19 @@ bool WebMediaPlayerMS::seeking() const {
|
| return false;
|
| }
|
|
|
| +float WebMediaPlayerMS::durationFloat() const {
|
| + return duration();
|
| +}
|
| +
|
| float WebMediaPlayerMS::duration() const {
|
| DCHECK(thread_checker_.CalledOnValidThread());
|
| return std::numeric_limits<float>::infinity();
|
| }
|
|
|
| +float WebMediaPlayerMS::currentTimeFloat() const {
|
| + return currentTime();
|
| +}
|
| +
|
| float WebMediaPlayerMS::currentTime() const {
|
| DCHECK(thread_checker_.CalledOnValidThread());
|
| if (current_frame_.get()) {
|
| @@ -284,6 +308,10 @@ const WebKit::WebTimeRanges& WebMediaPlayerMS::buffered() {
|
| return buffered_;
|
| }
|
|
|
| +float WebMediaPlayerMS::maxTimeSeekableFloat() const {
|
| + return maxTimeSeekable();
|
| +}
|
| +
|
| float WebMediaPlayerMS::maxTimeSeekable() const {
|
| DCHECK(thread_checker_.CalledOnValidThread());
|
| return 0.0f;
|
| @@ -335,6 +363,10 @@ WebMediaPlayer::MovieLoadType WebMediaPlayerMS::movieLoadType() const {
|
| return WebMediaPlayer::MovieLoadTypeUnknown;
|
| }
|
|
|
| +float WebMediaPlayerMS::mediaTimeForTimeValueFloat(float timeValue) const {
|
| + return mediaTimeForTimeValue(timeValue);
|
| +}
|
| +
|
| float WebMediaPlayerMS::mediaTimeForTimeValue(float timeValue) const {
|
| return ConvertSecondsToTimestamp(timeValue).InSecondsF();
|
| }
|
|
|