Jump to content

Cannot play movies with HTTPS


Recommended Posts

Posted (edited)

Hi all,

 

I tried to search for an existing topic about this specific situation but have not find anything.

 

The problem is I cannot play movie using an external connection by HTTPS. BUT sometime it works and sometime not, depending with which device/browser you connect. For example:

 

External ip (HTTPS) --> Google Chrome on windows machine --> Can connect and can play movies

External ip (HTTPS) --> Google Chrome on samsung android cell phone --> Can connect but cannot play movie. It return me an error "There was an error playing the video".

 

FYI: I don't added any SSL Certificat (use emby default) and I tried with both check/uncheck on the option "Report https as external address".

 

I can send you the "faulty" log if you want. It seems to do an error using the certificate...

 

Thanks in advance!

Edited by eraser8
Posted

I had tons of problems with https outside browsers before i got a proper certificate from https://letsencrypt.org/ now everything works well. So i would either suggest setting up a valid cert or go with non-ssl

  • Like 1
Posted

Thanks for your answer.

 

I tried using your link but it seems the need to run Linux or to a an IIS server? Do you have an easy way of using it?

 

Thanks

Posted

It was no way easy but since my emby runs on WHS2011 i already had an IIS running i just needed to reconfigure it all

Happy2Play
Posted (edited)

It was no way easy but since my emby runs on WHS2011 i already had an IIS running i just needed to reconfigure it all

I just used my custom whs2011 Godaddy certificate.

Edited by Happy2Play
Posted

You can use nginx, tomcat, apache, iis or wahtever you wish.  All you need to do it configure a reverse proxy with all traffic being tunneled through https using a cert from a CA.  Do not use self-signed certs.  I use namecheap and it's about $12/year for a domain + CA signed SSL cert.

Posted

Hi guys,

 

Thank you for all your inputs. The question I'm thinking is..... why does it work with Chrome in windows and it doesn't work with chrome on android... I know the user agent is different, but all in all, is it a problem with the server or with the client?

 

Thanks

Happy2Play
Posted

Do you get the same behavior using http?

Posted

The browser will reject the self-signed cert and you need to override that in the browser itself.

Posted

Do you get the same behavior using http?

 

No, it works flawlessly using http but I prefer using https over the net.

Happy2Play
Posted

Since it is a self signed certificate issue you could google Add self signed SSL certificate to Android.

Posted

Ok, but this doesn't explain why it works with Chrome in windows and it doesn't work in Chrome on Android?

Happy2Play
Posted (edited)

Sure you are using Chrome by they are two different OSes so everything isn't going to be identical.

 

Maybe higher security settings on the mobile device?

Edited by Happy2Play
Posted

yes it does explain it. you have to override it on the client device so you'll need to find where that is.

Posted

Ok I understand that both can have different security level configured.... BUT the weird thing is I can connect to the server. The error appear only when I press play button on a movie... Is this a possible case depending on the security level?

 

Thanks guys

Posted

When you try to play a movie, it is then an external component (the Video player) that is hitting the URL.  So, yes, it can be different.

Posted

When you try to play a movie, it is then an external component (the Video player) that is hitting the URL.  So, yes, it can be different.

 

Ok good to know. Is the player built-in in Google Chrome? This could explain why he doesn't like the HTTPS...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...