Adaptive streaming with souphtttpsrc
Aniket Hande
ahande at ftilab.com
Fri Feb 11 05:00:51 UTC 2022
I have a query about using authorization headers while using souphttpsrc
for video streaming. I'm providing my auth token by using "extra-headers"
property, however it seems to be only using the token for first part where
we download the hls playlist but the later chunks or video stream (ts)
download requests are not using the token which results in "401
Unauthorized"(I maybe wrong here). Is it expected to throw 401 from 2nd GET
request onwards or am I probably doing something wrong here?
Pipeline:
gst-launch-1.0 -vvv souphttpsrc is-live=true ssl-strict=false location=
https://some-server-ip/v1/devices/cam1/live/playlist.m3u8
extra-headers="header,Authorization=\"Bearer\
4fh7eecd-704a-44ba-4758-0bdbd67848ce\"" ! hlsdemux ! tsdemux ! h264parse !
avdec_h264 ! videoconvert ! autovideosink
logs with "http-log-level":
0:00:00.624029896 3674 0x55a2ccdbf770 TRACE souputils
gstsouputils.c:66:gst_soup_util_log_printer_cb:<souphttpsrc0>
HTTP_SESSION(M): > GET /v1/devices/cam1/live/playlist.m3u8 HTTP/1.1
0:00:00.844650347 3674 0x55a2ccdbf770 TRACE souputils
gstsouputils.c:66:gst_soup_util_log_printer_cb:<souphttpsrc0>
HTTP_SESSION(M): < HTTP/1.1 200 OK
0:00:01.432465320 3674 0x7fc7fc40e000 TRACE souputils
gstsouputils.c:66:gst_soup_util_log_printer_cb:<souphttpsrc0>
HTTP_SESSION(M): > GET /live/v1/cam1/hls/playlist.m3u8 HTTP/1.1
0:00:01.603365434 3674 0x7fc7fc40e000 TRACE souputils
gstsouputils.c:66:gst_soup_util_log_printer_cb:<souphttpsrc0>
HTTP_SESSION(M): < HTTP/1.1 401 Unauthorized
--
*Regards,*
*Aniket Hande*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20220211/4eff84eb/attachment.htm>
More information about the gstreamer-devel
mailing list