GStreamer Good Plugins 0.10 Plugins Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
GObject +----GstObject +----GstElement +----GstBaseSrc +----GstPushSrc +----GstSoupHTTPSrc
"automatic-redirect" gboolean : Read / Write "cookies" GStrv* : Read / Write "iradio-genre" gchar* : Read "iradio-mode" gboolean : Read / Write "iradio-name" gchar* : Read "iradio-title" gchar* : Read "iradio-url" gchar* : Read "location" gchar* : Read / Write "proxy" gchar* : Read / Write "user-agent" gchar* : Read / Write "is-live" gboolean : Read / Write "proxy-id" gchar* : Read / Write "proxy-pw" gchar* : Read / Write "user-id" gchar* : Read / Write "user-pw" gchar* : Read / Write "extra-headers" GstStructure* : Read / Write "timeout" guint : Read / Write
This plugin reads data from a remote location specified by a URI. Supported protocols are 'http', 'https'.
An HTTP proxy must be specified by its URL. If the "http_proxy" environment variable is set, its value is used. If built with libsoup's GNOME integration features, the GNOME proxy configuration will be used, or failing that, proxy autodetection. The "proxy" property can be used to override the default.
In case the "iradio-mode" property is set and the location is an HTTP resource, souphttpsrc will send special Icecast HTTP headers to the server to request additional Icecast meta-information. If the server is not an Icecast server, it will behave as if the "iradio-mode" property were not set. If it is, souphttpsrc will output data with a media type of application/x-icy, in which case you will need to use the ICYDemux element as follow-up element to extract the Icecast metadata and to determine the underlying media type.
gst-launch -v souphttpsrc location=https://some.server.org/index.html ! filesink location=/home/joe/server.html
gst-launch -v souphttpsrc user-agent="FooPlayer 0.99 beta" automatic-redirect=false proxy=http://proxy.intranet.local:8080 location=http://music.foobar.com/demo.mp3 ! mad ! audioconvert ! audioresample ! alsasink
gst-launch -v souphttpsrc location=http://10.11.12.13/mjpeg do-timestamp=true ! multipartdemux ! image/jpeg,width=640,height=480 ! matroskamux ! filesink location=mjpeg.mkv
"automatic-redirect"
property "automatic-redirect" gboolean : Read / Write
Automatically follow HTTP redirects (HTTP Status Code 3xx).
Default value: TRUE
"iradio-mode"
property "iradio-mode" gboolean : Read / Write
Enable internet radio mode (extraction of shoutcast/icecast metadata).
Default value: FALSE
"iradio-title"
property "iradio-title" gchar* : Read
Name of currently playing song.
Default value: NULL
"iradio-url"
property "iradio-url" gchar* : Read
Homepage URL for radio stream.
Default value: NULL
"user-agent"
property "user-agent" gchar* : Read / Write
Value of the User-Agent HTTP request header field.
Default value: "GStreamer souphttpsrc "
"is-live"
property "is-live" gboolean : Read / Write
Act like a live source.
Default value: FALSE
"proxy-id"
property "proxy-id" gchar* : Read / Write
HTTP proxy URI user id for authentication.
Default value: ""
"proxy-pw"
property "proxy-pw" gchar* : Read / Write
HTTP proxy URI user password for authentication.
Default value: ""
"user-id"
property "user-id" gchar* : Read / Write
HTTP location URI user id for authentication.
Default value: ""
"user-pw"
property "user-pw" gchar* : Read / Write
HTTP location URI user password for authentication.
Default value: ""
"extra-headers"
property "extra-headers" GstStructure* : Read / Write
Extra headers to append to the HTTP request.