Top |
gboolean | automatic-redirect | Read / Write |
GStrv | cookies | Read / Write |
gboolean | iradio-mode | Read / Write |
gchar * | location | Read / Write |
gchar * | proxy | Read / Write |
gchar * | user-agent | Read / Write |
gboolean | is-live | Read / Write |
gchar * | proxy-id | Read / Write |
gchar * | proxy-pw | Read / Write |
gchar * | user-id | Read / Write |
gchar * | user-pw | Read / Write |
GstStructure * | extra-headers | Read / Write |
guint | timeout | Read / Write |
gboolean | compress | Read / Write |
SoupLoggerLogLevel | http-log-level | Read / Write |
gboolean | keep-alive | Read / Write |
gint | retries | Read / Write |
gchar * | ssl-ca-file | Read / Write |
gboolean | ssl-strict | Read / Write |
gboolean | ssl-use-system-ca-file | Read / Write |
GTlsDatabase * | tls-database | Read / Write |
gchar * | method | Read / Write |
GTlsInteraction * | tls-interaction | Read / Write |
GObject ╰── GInitiallyUnowned ╰── GstObject ╰── GstElement ╰── GstBaseSrc ╰── GstPushSrc ╰── GstSoupHTTPSrc
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.
1 2 |
gst-launch-1.0 -v souphttpsrc location=https://some.server.org/index.html ! filesink location=/home/joe/server.html |
1 2 3 4 |
gst-launch-1.0 -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 |
1 2 3 4 |
gst-launch-1.0 -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
Automatically follow HTTP redirects (HTTP Status Code 3xx).
Flags: Read / Write
Default value: TRUE
“iradio-mode”
property “iradio-mode” gboolean
Enable internet radio mode (ask server to send shoutcast/icecast metadata interleaved with the actual stream data).
Flags: Read / Write
Default value: TRUE
“location”
property “location” gchar *
Location to read from.
Flags: Read / Write
Default value: ""
“user-agent”
property “user-agent” gchar *
Value of the User-Agent HTTP request header field.
Flags: Read / Write
Default value: "GStreamer souphttpsrc "
“is-live”
property “is-live” gboolean
Act like a live source.
Flags: Read / Write
Default value: FALSE
“proxy-id”
property “proxy-id” gchar *
HTTP proxy URI user id for authentication.
Flags: Read / Write
Default value: ""
“proxy-pw”
property “proxy-pw” gchar *
HTTP proxy URI user password for authentication.
Flags: Read / Write
Default value: ""
“user-id”
property “user-id” gchar *
HTTP location URI user id for authentication.
Flags: Read / Write
Default value: ""
“user-pw”
property “user-pw” gchar *
HTTP location URI user password for authentication.
Flags: Read / Write
Default value: ""
“extra-headers”
property “extra-headers” GstStructure *
Extra headers to append to the HTTP request.
Flags: Read / Write
“timeout”
property “timeout” guint
Value in seconds to timeout a blocking I/O (0 = No timeout).
Flags: Read / Write
Allowed values: <= 3600
Default value: 15
“compress”
property “compress” gboolean
Allow compressed content encodings.
Flags: Read / Write
Default value: FALSE
“http-log-level”
property“http-log-level” SoupLoggerLogLevel
Set log level for soup's HTTP session log.
Flags: Read / Write
Default value: SOUP_LOGGER_LOG_HEADERS
“keep-alive”
property “keep-alive” gboolean
Use HTTP persistent connections.
Flags: Read / Write
Default value: FALSE
“retries”
property “retries” gint
Maximum number of retries until giving up (-1=infinite).
Flags: Read / Write
Allowed values: >= G_MAXULONG
Default value: 3
“ssl-ca-file”
property “ssl-ca-file” gchar *
Location of a SSL anchor CA file to use.
Flags: Read / Write
Default value: NULL
“ssl-strict”
property “ssl-strict” gboolean
Strict SSL certificate checking.
Flags: Read / Write
Default value: TRUE
“ssl-use-system-ca-file”
property “ssl-use-system-ca-file” gboolean
Use system CA file.
Flags: Read / Write
Default value: TRUE
“tls-database”
property “tls-database” GTlsDatabase *
TLS database with anchor certificate authorities used to validate the server certificate.
Flags: Read / Write
“method”
property “method” gchar *
The HTTP method to use (GET, HEAD, OPTIONS, etc).
Flags: Read / Write
Default value: NULL