Jump to content


Photo

Videos won't play on Fire TV or Android Phone Apps

Help Support FireTV Emby Android Fire TV App Video reverse proxy

Best Answer jmbond04 , 24 May 2018 - 06:09 PM

its personal preference...  IIS, Apache, but I prefer Nginx. If you have no issues switching i would give it a try...    I bet it just works with one of the configs listed on this forum.   But if you want to keep apache, make sure you are passing the "range" and "if-range" headers in apache.  is it only mp4 files you have issues with?  can you try a mkv or something.. 

 

I finally had a chance to setup nginx to use for my reverse proxy and it looks like that worked for the fire stick. In case anyone else has the same problem and wants to switch to nginx here is my setting for the proxy.

server {
  server_name example.com;
	location / {
		proxy_pass http://192.168.11.51:8096/;
                proxy_set_header        X-Real-IP               $remote_addr;
                proxy_set_header        X-Forwarded-For         $proxy_add_x_forwarded_for;
                proxy_set_header        Host                    $host:$server_port;
                proxy_set_header        X-Forwarded-Proto       $remote_addr;
                proxy_set_header        X-Forwarded-Protocol    $scheme;
                proxy_redirect          off;

                proxy_http_version      1.1;
                proxy_set_header        Upgrade                 $http_upgrade;
                proxy_set_header        Connection              "upgrade";  
	}
    listen [::]:8096 ssl ipv6only=on; # managed by Certbot
    listen 8096 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}

There's an issue in the android mobile app specific to Samsung devices that we are looking into for the next update. Thanks.

 

I am still not able to use my Samsung S6 to play anything through the app but at least this device functions well with the web app. Is there any way to get Samsung devices to play or any way to get more information of this issue? 

 

Thanks everyone for the help. 

Go to the full post


  • Please log in to reply
16 replies to this topic

#1 jmbond04 OFFLINE  

jmbond04

    Member

  • Members
  • 12 posts
  • Local time: 09:09 AM

Posted 20 May 2018 - 12:39 AM

I just bought an emby lifetime subscription today and I can't get any of the android apps to work. I can log in fine to Web Gui, Emby Theater, Kodi work (although EmbyCon is extremely slow and part of the reason I want to use the apps). I bought this subscription mostly to use the apps so I'm currently feeling like I wasted money.

 

I can log into each of the apps (Fire TV and Android Phone). I have used my reverse proxy using apache, direct https and direct http ports and I can sign in using all of them but when I try to select something to play it just sits there. Although sometimes it seems I can get a SSL Handshake Error and other times it seems like it's not even recognized.

 

Any ideas on what could be wrong?

 

I have attached a couple server log.



#2 ebr OFFLINE  

ebr

    Chief Bottle Washer

  • Administrators
  • 46949 posts
  • Local time: 10:09 AM

Posted 20 May 2018 - 08:50 AM

Based on what you describe and the fact it is both apps it seems that it has to be related to the reverse proxy or network setup.

 

@pir8radio


  • jmbond04 likes this

#3 pir8radio OFFLINE  

pir8radio

    NGINX

  • Members
  • 2917 posts
  • Local time: 09:09 AM
  • LocationChicago

Posted 20 May 2018 - 10:28 AM

I just bought an emby lifetime subscription today and I can't get any of the android apps to work. I can log in fine to Web Gui, Emby Theater, Kodi work (although EmbyCon is extremely slow and part of the reason I want to use the apps). I bought this subscription mostly to use the apps so I'm currently feeling like I wasted money.

 

I can log into each of the apps (Fire TV and Android Phone). I have used my reverse proxy using apache, direct https and direct http ports and I can sign in using all of them but when I try to select something to play it just sits there. Although sometimes it seems I can get a SSL Handshake Error and other times it seems like it's not even recognized.

 

Any ideas on what could be wrong?

 

I have attached a couple server log.

 

 

you can not use redirects 301, 302 from http to https..  especially in those apps, make sure the address that is in your app is your https://xxxxx and https port number.    dont expect the app to figure out the http redirect you may have in place. 

 

What format are the files that just sit there?  MP4?  or something else?   Post your apache config.   I'm not the best with apache but there are some on here that use it. 

 

Also make sure that you are not using https from apache to emby, it will cause all kinds of headaches.  you should be using your http port, and have the option in emby set to "reverse proxy". You shouldn't see ssl errors in your emby log if you are running through a reverse proxy.


Edited by pir8radio, 20 May 2018 - 10:35 AM.

  • jmbond04 likes this

#4 jmbond04 OFFLINE  

jmbond04

    Member

  • Members
  • 12 posts
  • Local time: 09:09 AM

Posted 20 May 2018 - 01:36 PM

you can not use redirects 301, 302 from http to https..  especially in those apps, make sure the address that is in your app is your https://xxxxx and https port number.    dont expect the app to figure out the http redirect you may have in place. 
 
What format are the files that just sit there?  MP4?  or something else?   Post your apache config.   I'm not the best with apache but there are some on here that use it. 
 
Also make sure that you are not using https from apache to emby, it will cause all kinds of headaches.  you should be using your http port, and have the option in emby set to "reverse proxy". You shouldn't see ssl errors in your emby log if you are running through a reverse proxy.

I attached my apache config 8096 is the port that is going to the emby server. Should I be using something other than apache for this?

 

I have tried
https://REPLACED.duckdns.org and https port 8096 -- reverse proxy port to emby http

https://REPLACED.duckdns.org and https port 8920 -- emby https port.

(using "openssl pkcs12 -export -out /mnt/letsencrypt/live/REPLACED.duckdns.org/REPLACED.duckdns.org.pfx -inkey /etc/letsencrypt/live/REPLACED.duckdns.org/privkey.pem -in /etc/letsencrypt/live/REPLACED.duckdns.org/cert.pem -password pass:PASSWORD"
 for the certificate used in Emby)

http://REPLACED.duckdns.org and http port 8097 -- redirected from the router to port 8096 on emby

 

I've tried multiple files and yes they are in MP4 format and play in firefox on the Fire TV  Stick.

 

The ssl errors because I have tried multiple different ways to get this to work. I did have emby set to "reverse proxy" during some of my testing.



#5 pir8radio OFFLINE  

pir8radio

    NGINX

  • Members
  • 2917 posts
  • Local time: 09:09 AM
  • LocationChicago

Posted 20 May 2018 - 02:06 PM

I attached my apache config 8096 is the port that is going to the emby server. Should I be using something other than apache for this?

 

its personal preference...  IIS, Apache, but I prefer Nginx. If you have no issues switching i would give it a try...    I bet it just works with one of the configs listed on this forum.   But if you want to keep apache, make sure you are passing the "range" and "if-range" headers in apache.  is it only mp4 files you have issues with?  can you try a mkv or something.. 


  • jmbond04 likes this

#6 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 137760 posts
  • Local time: 10:09 AM

Posted 20 May 2018 - 03:02 PM

What android phone device are you using?


  • jmbond04 likes this

#7 jmbond04 OFFLINE  

jmbond04

    Member

  • Members
  • 12 posts
  • Local time: 09:09 AM

Posted 20 May 2018 - 10:49 PM

What android phone device are you using?

The phone is a Samsung Galaxy S6.



#8 jmbond04 OFFLINE  

jmbond04

    Member

  • Members
  • 12 posts
  • Local time: 09:09 AM

Posted 20 May 2018 - 11:10 PM

its personal preference...  IIS, Apache, but I prefer Nginx. If you have no issues switching i would give it a try...    I bet it just works with one of the configs listed on this forum.   But if you want to keep apache, make sure you are passing the "range" and "if-range" headers in apache.  is it only mp4 files you have issues with?  can you try a mkv or something.. 

I may give Nginx a try when I have some free time but right now I'm just wanting to get this working any way possible through the app.

 

I tried again using a mkv file. I received the same result I did notice if I was connected to my home wifi it did work on my phone though. So it seems like the issue may just be outside of my home network.



#9 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 137760 posts
  • Local time: 10:09 AM

Posted 21 May 2018 - 12:21 PM

The phone is a Samsung Galaxy S6.

 

There's an issue in the android mobile app specific to Samsung devices that we are looking into for the next update. Thanks.


  • jmbond04 likes this

#10 jmbond04 OFFLINE  

jmbond04

    Member

  • Members
  • 12 posts
  • Local time: 09:09 AM

Posted 22 May 2018 - 12:43 AM

There's an issue in the android mobile app specific to Samsung devices that we are looking into for the next update. Thanks.

OK that explains the phone not working. Any idea on when that update should be out?

Any ideas on why the Fire TV Stick is also not working? 



#11 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 137760 posts
  • Local time: 10:09 AM

Posted 22 May 2018 - 12:47 AM

Hopefully soon. For the fire stick, it depends. What kind of SSL cert? It needs to be a certificate that the android operating system will trust.


  • jmbond04 likes this

#12 jmbond04 OFFLINE  

jmbond04

    Member

  • Members
  • 12 posts
  • Local time: 09:09 AM

Posted 22 May 2018 - 12:52 AM

Hopefully soon. For the fire stick, it depends. What kind of SSL cert? It needs to be a certificate that the android operating system will trust.

 

I'm using Let's Encrypt for my certificate.



#13 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 137760 posts
  • Local time: 10:09 AM

Posted 22 May 2018 - 12:59 AM

Do amazon devices accept that out of the box? That would be the question, assuming the issue is certificate-related.

 

What you can do is submit an in-app log by following the instructions at the bottom of the page here:

https://emby.media/c...port-a-problem/

 

Then @ebr will review. Thanks.


  • jmbond04 likes this

#14 ebr OFFLINE  

ebr

    Chief Bottle Washer

  • Administrators
  • 46949 posts
  • Local time: 10:09 AM

Posted 22 May 2018 - 08:36 AM

Also, if you are using a Linux server search out here for certificate linux and fire tv because there may be some things you need to do to get the OS to pass the full certificate chain.

 

Thanks.


  • jmbond04 likes this

#15 jmbond04 OFFLINE  

jmbond04

    Member

  • Members
  • 12 posts
  • Local time: 09:09 AM

Posted 24 May 2018 - 06:09 PM   Best Answer

its personal preference...  IIS, Apache, but I prefer Nginx. If you have no issues switching i would give it a try...    I bet it just works with one of the configs listed on this forum.   But if you want to keep apache, make sure you are passing the "range" and "if-range" headers in apache.  is it only mp4 files you have issues with?  can you try a mkv or something.. 

 

I finally had a chance to setup nginx to use for my reverse proxy and it looks like that worked for the fire stick. In case anyone else has the same problem and wants to switch to nginx here is my setting for the proxy.

server {
  server_name example.com;
	location / {
		proxy_pass http://192.168.11.51:8096/;
                proxy_set_header        X-Real-IP               $remote_addr;
                proxy_set_header        X-Forwarded-For         $proxy_add_x_forwarded_for;
                proxy_set_header        Host                    $host:$server_port;
                proxy_set_header        X-Forwarded-Proto       $remote_addr;
                proxy_set_header        X-Forwarded-Protocol    $scheme;
                proxy_redirect          off;

                proxy_http_version      1.1;
                proxy_set_header        Upgrade                 $http_upgrade;
                proxy_set_header        Connection              "upgrade";  
	}
    listen [::]:8096 ssl ipv6only=on; # managed by Certbot
    listen 8096 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}

There's an issue in the android mobile app specific to Samsung devices that we are looking into for the next update. Thanks.

 

I am still not able to use my Samsung S6 to play anything through the app but at least this device functions well with the web app. Is there any way to get Samsung devices to play or any way to get more information of this issue? 

 

Thanks everyone for the help. 



#16 pir8radio OFFLINE  

pir8radio

    NGINX

  • Members
  • 2917 posts
  • Local time: 09:09 AM
  • LocationChicago

Posted 24 May 2018 - 07:35 PM

I finally had a chance to setup nginx to use for my reverse proxy and it looks like that worked for the fire stick. In case anyone else has the same problem and wants to switch to nginx here is my setting for the proxy.

server {
  server_name example.com;
	location / {
		proxy_pass http://192.168.11.51:8096/;
                proxy_set_header        X-Real-IP               $remote_addr;
                proxy_set_header        X-Forwarded-For         $proxy_add_x_forwarded_for;
                proxy_set_header        Host                    $host:$server_port;
                proxy_set_header        X-Forwarded-Proto       $remote_addr;
                proxy_set_header        X-Forwarded-Protocol    $scheme;
                proxy_redirect          off;

                proxy_http_version      1.1;
                proxy_set_header        Upgrade                 $http_upgrade;
                proxy_set_header        Connection              "upgrade";  
	}
    listen [::]:8096 ssl ipv6only=on; # managed by Certbot
    listen 8096 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}

I am still not able to use my Samsung S6 to play anything through the app but at least this device functions well with the web app. Is there any way to get Samsung devices to play or any way to get more information of this issue? 

 

Thanks everyone for the help. 

 

 

I think i recall seeing a post that @Luke posted about a known issue with the samsung devices, that may be fixed in the next release?  But my memory sucks, so don't quote me.   Oh It's a few posts up....  post number 9


Edited by pir8radio, 24 May 2018 - 07:36 PM.

  • jmbond04 likes this

#17 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 137760 posts
  • Local time: 10:09 AM

Posted 24 May 2018 - 10:10 PM

For now with Samsung you'd have to use http. Please try https again with the next release of the app.
  • jmbond04 likes this





Also tagged with one or more of these keywords: Help, Support, FireTV, Emby, Android, Fire TV, App, Video, reverse proxy

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users