HTTPServerSink

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

HTTPServerSink

Simon Hargreaves
Has anyone done a HTTP Server Sink plugin for GStreamer. I'm looking at
implementing a simple http server plugin that can server streams to VLC
over a HTTP connection, but I'd rather not reinvent the wheel. The
existing tcpserversink plugin doesn't do what is required by VLC as it
needs to send an http compliant header before the data.

Thanks,
    Simon...


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: HTTPServerSink

Simon Hargreaves
I've done a modified version of the tcpserversink plugin to supply an
HTTP header based on a parameter switch, currently you have to manually
select either an octet stream, video/mpeg or audio/mpeg header. Is there
a way to easily pick up the incoming media mime type from the sink
object so it can be automatically sent with the http header when headers
are turned on?

Simon...

Simon Hargreaves wrote:

> Has anyone done a HTTP Server Sink plugin for GStreamer. I'm looking at
> implementing a simple http server plugin that can server streams to VLC
> over a HTTP connection, but I'd rather not reinvent the wheel. The
> existing tcpserversink plugin doesn't do what is required by VLC as it
> needs to send an http compliant header before the data.
>
> Thanks,
>     Simon...
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>  


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: HTTPServerSink

michael smith-6-3
On Tue, Apr 29, 2008 at 2:51 AM, Simon Hargreaves <[hidden email]> wrote:
> I've done a modified version of the tcpserversink plugin to supply an
>  HTTP header based on a parameter switch, currently you have to manually
>  select either an octet stream, video/mpeg or audio/mpeg header. Is there
>  a way to easily pick up the incoming media mime type from the sink
>  object so it can be automatically sent with the http header when headers
>  are turned on?

Simon,

The 'caps' that get set on the sink's sinkpad describe the media type,
using gstreamer's caps system (these look a lot like mime-types, and
in many cases there's a one-to-one mapping, but there are cases where
that's not correct - they're not actually mime-types in general).

So you can just set up a setcaps function on the sinkpad to find out
when the sink caps are set, and determine the media-type there.

Mike

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel