SourceBufferPrivateGStreamer.cpp [plain text]
#include "config.h"
#include "SourceBufferPrivateGStreamer.h"
#if ENABLE(MEDIA_SOURCE) && USE(GSTREAMER)
#include "ContentType.h"
#include "NotImplemented.h"
namespace WebCore {
SourceBufferPrivateGStreamer::SourceBufferPrivateGStreamer(PassRefPtr<MediaSourceClientGStreamer> client, const ContentType& contentType)
: m_type(contentType)
, m_client(client)
, m_readyState(MediaPlayer::HaveNothing)
{
}
SourceBufferPrivateGStreamer::~SourceBufferPrivateGStreamer()
{
}
void SourceBufferPrivateGStreamer::setClient(SourceBufferPrivateClient* client)
{
m_sourceBufferPrivateClient = client;
}
void SourceBufferPrivateGStreamer::append(const unsigned char* data, unsigned length)
{
ASSERT(m_client);
ASSERT(m_sourceBufferPrivateClient);
SourceBufferPrivateClient::AppendResult result = m_client->append(this, data, length);
m_sourceBufferPrivateClient->sourceBufferPrivateAppendComplete(this, result);
}
void SourceBufferPrivateGStreamer::abort()
{
notImplemented();
}
void SourceBufferPrivateGStreamer::removedFromMediaSource()
{
m_client->removedFromMediaSource(this);
}
MediaPlayer::ReadyState SourceBufferPrivateGStreamer::readyState() const
{
return m_readyState;
}
void SourceBufferPrivateGStreamer::setReadyState(MediaPlayer::ReadyState state)
{
m_readyState = state;
}
void SourceBufferPrivateGStreamer::flushAndEnqueueNonDisplayingSamples(Vector<RefPtr<MediaSample>>, AtomicString)
{
notImplemented();
}
void SourceBufferPrivateGStreamer::enqueueSample(PassRefPtr<MediaSample>, AtomicString)
{
notImplemented();
}
bool SourceBufferPrivateGStreamer::isReadyForMoreSamples(AtomicString)
{
notImplemented();
return false;
}
void SourceBufferPrivateGStreamer::setActive(bool)
{
notImplemented();
}
void SourceBufferPrivateGStreamer::stopAskingForMoreSamples(AtomicString)
{
notImplemented();
}
void SourceBufferPrivateGStreamer::notifyClientWhenReadyForMoreSamples(AtomicString)
{
notImplemented();
}
}
#endif