[webkit-help] Video Buffer

Julien Chaffraix julien.chaffraix at gmail.com
Tue Nov 15 07:42:33 PST 2011

> I am trying to create an API that returns a pointer to the
> buffer where the video stream is stored.

You did not say what you meant by the video stream. I assumed you were
talking about the _decoded_ stream and my answer was based on that

> If I am not wrong MediaPlayer.h
> deals with videos specified in the video tag.

You are right (it is also used by <audio btw). You seem to draw a line
here, what kind of streaming are you interested in apart from <video>
or <audio>?

> WebCore/platform/dfb/SharedBufferDFB.cpp has a function
> "createWithContentsOfFile(const String& filePath)". Can  this be used to
> used to to create a buffer?

SharedBuffer is used by the loader mechanism to communicate with the
network stack. Now IIRC the media elements (audio, video) currently
don't use the loaders: they just tell the third party library that
will decode the data to just fetch and play the URL. This means that
you don't get any of this information at the WebKit level.

Hope it helps,

More information about the webkit-help mailing list