MediaPlayerPrivateMediaFoundation.cpp [plain text]
#include "config.h"
#include "MediaPlayerPrivateMediaFoundation.h"
#include "GraphicsContext.h"
#include "NotImplemented.h"
#if USE(MEDIA_FOUNDATION)
namespace WebCore {
MediaPlayerPrivateMediaFoundation::MediaPlayerPrivateMediaFoundation(MediaPlayer* player)
: m_player(player)
{
}
PassOwnPtr<MediaPlayerPrivateInterface> MediaPlayerPrivateMediaFoundation::create(MediaPlayer* player)
{
return adoptPtr(new MediaPlayerPrivateMediaFoundation(player));
}
void MediaPlayerPrivateMediaFoundation::registerMediaEngine(MediaEngineRegistrar registrar)
{
if (isAvailable())
registrar(create, getSupportedTypes, supportsType, 0, 0, 0, 0);
}
bool MediaPlayerPrivateMediaFoundation::isAvailable()
{
notImplemented();
return true;
}
void MediaPlayerPrivateMediaFoundation::getSupportedTypes(HashSet<String>& types)
{
notImplemented();
types = HashSet<String>();
}
MediaPlayer::SupportsType MediaPlayerPrivateMediaFoundation::supportsType(const MediaEngineSupportParameters& parameters)
{
notImplemented();
return MediaPlayer::IsNotSupported;
}
void MediaPlayerPrivateMediaFoundation::load(const String&)
{
notImplemented();
}
void MediaPlayerPrivateMediaFoundation::cancelLoad()
{
notImplemented();
}
void MediaPlayerPrivateMediaFoundation::play()
{
notImplemented();
}
void MediaPlayerPrivateMediaFoundation::pause()
{
notImplemented();
}
FloatSize MediaPlayerPrivateMediaFoundation::naturalSize() const
{
notImplemented();
return IntSize(0, 0);
}
bool MediaPlayerPrivateMediaFoundation::hasVideo() const
{
notImplemented();
return false;
}
bool MediaPlayerPrivateMediaFoundation::hasAudio() const
{
notImplemented();
return false;
}
void MediaPlayerPrivateMediaFoundation::setVisible(bool)
{
notImplemented();
}
bool MediaPlayerPrivateMediaFoundation::seeking() const
{
notImplemented();
return false;
}
bool MediaPlayerPrivateMediaFoundation::paused() const
{
notImplemented();
return false;
}
MediaPlayer::NetworkState MediaPlayerPrivateMediaFoundation::networkState() const
{
notImplemented();
return MediaPlayer::Empty;
}
MediaPlayer::ReadyState MediaPlayerPrivateMediaFoundation::readyState() const
{
notImplemented();
return MediaPlayer::HaveNothing;
}
std::unique_ptr<PlatformTimeRanges> MediaPlayerPrivateMediaFoundation::buffered() const
{
notImplemented();
return PlatformTimeRanges::create();
}
bool MediaPlayerPrivateMediaFoundation::didLoadingProgress() const
{
notImplemented();
return false;
}
void MediaPlayerPrivateMediaFoundation::setSize(const IntSize&)
{
notImplemented();
}
void MediaPlayerPrivateMediaFoundation::paint(GraphicsContext* context, const FloatRect& rect)
{
if (context->paintingDisabled()
|| !m_player->visible())
return;
notImplemented();
}
}
#endif