Jump to content
  • 0

Facing issues streaming video from antmedia URL


Vijay EH
 Share

Question

Hello everyone!

Stuck here from past few days, 

I have tried to play streams in android app using https://ams.serverexample.com:1234/MyApp/streams/videoname.m3u8 with Exoplayer, Exomedia, NicevieoPlayer and Videoview. 

It always throws this error. 

Caused by: javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

I tried playing other streams for example this stream, https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8 which plays without any issues with all the above players. Also I have tried playing other https streams, it worked. However the ams server doesn't allow us to connect and we always get the error message.

This seems like there is an issue with the certificate.

 

Any help is much appreciated. Thanks!

 

 

 

2024890458_StreamwithotherhttpshlsURL.thumb.png.3448e8551dab14e51e84898d53ec7527.png

2073756570_Stremingwithantmedia.thumb.png.2b0d6eb925d90df12d660b5bccd376c3.png

Link to comment
Share on other sites

  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

Posted Images

4 answers to this question

Recommended Posts

  • 0

Did you try installing your own SSL certificate on AMS?

 

Sent from my iPhone
On Feb 12, 2021, at 5:24 AM, Vijay EH <vijay@classplus.co> wrote:

 

Hello everyone!

Stuck here from past few days, 

I have tried to play streams in android app using https://ams.serverexample.com:1234/MyApp/streams/videoname.m3u8 with Exoplayer, Exomedia, NicevieoPlayer and Videoview. 

It always throws this error. 

Caused by: javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.

I tried playing other streams for example this stream, https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8 which plays without any issues with all the above players. Also I have tried playing other https streams, it worked. However the ams server doesn't allow us to connect and we always get the error message.

This seems like there is an issue with the certificate.

 

Any help is much appreciated. Thanks!

 

--

You received this message because you are subscribed to the Google Groups "Ant Media Server" group.

To unsubscribe from this group and stop receiving emails from it, send an email to ant-media-server+unsubscribe@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/ant-media-server/00f82502-7a60-44fe-a528-04030a2403c8n%40googlegroups.com.

<Stream with other https hls URL.png>
<Streming with antmedia.png>
Link to comment
Share on other sites

  • 0

Yes, we have installed Letsencrypt SSL on AMS server and was able to stream on port 6443 also but while trying to play HLS streams on android, we are not able to play. The same HLS works fine on web.

Any help or clue in understanding the issue will be helpful for us to proceed with AMS.

Thanks

 

Link to comment
Share on other sites

  • 0
Please add the full certificate chain fille (fullchain.pem) in Antmedia while enabling the SSH. Without the full chain, it gives error. Web app works differently. Browsers download chain from cache and verify.

Currently, the certificate chain (intermediate CA and Root CA certificate) will be missing.
You can run this command to verify it. It should show full chain instead of a single certificate
#openssl s_client -connect <server_name>:443
#openssl s_client -connect <server_name>:5443

Once done, the android app will start working..

For more details visit https://developer.android.com/training/articles/security-ssl#MissingCa

Link to comment
Share on other sites

 Share

×
×
  • Create New...