souphttpsrc play https stream

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

souphttpsrc play https stream

lovej
I use "souphttpsrc" to play a stream like "http://10.5.223.50/test.mp4" by gstreamer 1.9.1, it was successful, but when the stream change to https like "https://10.5.223.50/test.mp4", it play failed, i got the failed message like : my_bus_callback Error: [5] Secure connection setup failed. my_bus_callback Error: [1] Internal data flow error. my_bus_callback Error: [9] This file contains no playable streams I try to change some property on "souphttpsrc" like "ssl-strict", "ssl-use-system-ca-file", but all failed, anyone can help me to analyze it? thanks

Sent from the GStreamer-devel mailing list archive at Nabble.com.

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: souphttpsrc play https stream

DeepakRohan
Hi lovej,

  I get the same issue from https streams too.

Any clue or suggestions on this will be really helpful.

Thanks in Advance



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: souphttpsrc play https stream

lovej
hi DeepakRohan~!
       I can play "https" stream successfully on windows platform by
gstreamer 1.12.3,
   just set "ssl-strict" to false, but my work platform is android, when i
use like windows,
   it is failed。
       then I focus on the file "ca-certificates.crt", you can find it in
"/etc/ssl/certs/", according
   to the initial file "gstreamer_android-1.0.c.in",  I know we should set
"ca-certificates.crt" to
   environment variable like this:
            if (files_dir) {
                gchar *fontconfig, *certs;

               g_setenv ("HOME", files_dir, TRUE);
               g_setenv ("XDG_DATA_DIRS", files_dir, TRUE);
               g_setenv ("XDG_CONFIG_DIRS", files_dir, TRUE);
               g_setenv ("XDG_CONFIG_HOME", files_dir, TRUE);
               g_setenv ("XDG_DATA_HOME", files_dir, TRUE);

               fontconfig = g_build_filename (files_dir, "fontconfig",
NULL);
               g_setenv ("FONTCONFIG_PATH", fontconfig, TRUE);
               g_free (fontconfig);

               certs = g_build_filename (files_dir, "ssl", "certs",
"ca-certificates.crt", NULL);
               g_setenv ("CA_CERTIFICATES", certs, TRUE);
               g_free (certs);
             }

    I'm sure the "ca-certificates.crt" is exist and g_setenv is called
successfully, but I still
 get the same error "Secure connection setup failed"。



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: souphttpsrc play https stream

rland-2
On Android platform, GST reads  ca path through the CA_CERTIFICATES,
and I'm sure it works very well.

BTW,I did't  change the default properties of souphttpsrc, only set the
CA_CERTIFICATES environment variable, it works well.

If you specify a path with CA_CERTIFICATES and you still get a "Secure
connection setup failed" error then you probably should check again,make
sure that the CA-certificates.crt distributed by SDK has actually been put
in your specified directory and whether it is access denied?
---
   certs = g_build_filename (files_dir, "ssl", "certs",
"ca-certificates.crt", NULL);
---

Perhaps there should be at least 644 permissions. :)




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: souphttpsrc play https stream

lovej
hi rland-2!
    Thanks for your reply,I have resolved this problem,my key problem is
"TLS/SSL support not available; install glib-networking"。
    You need add "G_IO_MODULES:= gnutls" to your android.mk,and I find
the ca-certificates.crt is unnecessary,if play failed,you may try to set
"ssl-strict=false",the below topic you can refer to:
   
http://gstreamer-devel.966125.n4.nabble.com/Queries-about-libgstsouphttpsrc-td4667605.html
   
http://gstreamer-devel.966125.n4.nabble.com/How-to-add-glib-networking-GIO-GnuTLS-modules-while-building-for-Android-td4676587.html#a4676588
   



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel