blob: a0373a934978c3caba46d586d2a4b53bd8827608 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/platform/testing/empty_web_media_player.h"
#include "media/base/video_frame.h"
#include "third_party/blink/public/platform/web_size.h"
#include "third_party/blink/public/platform/web_time_range.h"
namespace blink {
WebMediaPlayer::LoadTiming EmptyWebMediaPlayer::Load(
LoadType,
const WebMediaPlayerSource&,
CorsMode,
bool is_cache_disabled) {
return LoadTiming::kImmediate;
}
WebTimeRanges EmptyWebMediaPlayer::Buffered() const {
return WebTimeRanges();
}
WebTimeRanges EmptyWebMediaPlayer::Seekable() const {
return WebTimeRanges();
}
gfx::Size EmptyWebMediaPlayer::NaturalSize() const {
return gfx::Size();
}
gfx::Size EmptyWebMediaPlayer::VisibleSize() const {
return gfx::Size();
}
WebString EmptyWebMediaPlayer::GetErrorMessage() const {
return WebString();
}
scoped_refptr<media::VideoFrame> EmptyWebMediaPlayer::GetCurrentFrame() {
return nullptr;
}
} // namespace blink