Jump to content

Unable to playback any video through apps, works via browser


bsiwue
Go to solution Solved by bsiwue,

Recommended Posts

I have emby server running on a Windows 10 computer. Remote access is handled by a reverse proxy (haproxy on pfsense), with a Let's Encryp SSL certificate, mapping port 443 to 8096.

 

What works from inside my network:

- Everything

 

What works from outside (via reverse proxy) my network:

- access, login and library browsing on every app or platform

- download of videos on every app or platform

- playback of videos via web browser on every platform

 

What doesn't work from outside (via reverse proxy) my network:

- playback of videos via app (tested on android, iphone, windows electron). There is no error message just when I try to start a video on e.g. the Android App it starts loading but never actually starts the playback. Just the spinner keeps spinning. I also have to force close the app in order to use it again.

 

So I assume it must have something to do with either server or reverse proxy setup. But why is it working via browser then? What is the app doing different then, especially as it mostly seems to be a wrapper (electron) of the web site. Unfortunately there doesn't seem to be a log file for any of the apps, so I just attached the server log.

 

Also these are my server network settings:

Local http port number: 8096

Local https port number: 8920

Allow remote connections to this Emby Server: on

Public http port number: 80

Public https port number: 443

External domain: my.public.domain

Secure connection mode: Handled by reverse proxy

Enable automatic port mapping: off

 

The other network settings are on default

embyserver.txt

Link to comment
Share on other sites

Hi, I'm guessing the issue is your CORS configuration. Notice all the http options requests in the log. On most platforms the the video player is it's own isolated component that will have it's own network layer separate from the UI. It may even be more primitive than what the UI has so ideally the proxy configuration should make it as simple as possible.

 

@@pir8radio may have some tips. Click his profile for his nginx configuration. I know you're not using nginx, but you may still be able to learn something from it.

Link to comment
Share on other sites

pir8radio

I have emby server running on a Windows 10 computer. Remote access is handled by a reverse proxy (haproxy on pfsense), with a Let's Encryp SSL certificate, mapping port 443 to 8096.

 

What works from inside my network:

- Everything

 

What works from outside (via reverse proxy) my network:

- access, login and library browsing on every app or platform

- download of videos on every app or platform

- playback of videos via web browser on every platform

 

What doesn't work from outside (via reverse proxy) my network:

- playback of videos via app (tested on android, iphone, windows electron). There is no error message just when I try to start a video on e.g. the Android App it starts loading but never actually starts the playback. Just the spinner keeps spinning. I also have to force close the app in order to use it again.

 

So I assume it must have something to do with either server or reverse proxy setup. But why is it working via browser then? What is the app doing different then, especially as it mostly seems to be a wrapper (electron) of the web site. Unfortunately there doesn't seem to be a log file for any of the apps, so I just attached the server log.

 

Also these are my server network settings:

Local http port number: 8096

Local https port number: 8920

Allow remote connections to this Emby Server: on

Public http port number: 80

Public https port number: 443

External domain: my.public.domain

Secure connection mode: Handled by reverse proxy

Enable automatic port mapping: off

 

The other network settings are on default

 

are the videos you are trying to play on the apps mp4?   If yes let the app sit there trying to play for a LONG time, like long enough to fully download then start playing..       Sounds like your proxy is stripping some headers.   I didnt look at your log yet... but what kind of reverse proxy i see, haproxy, and what does the config look like?    Your proxy should be pointing to the emby HTTP port only...  dont even use the emby built in https between your proxy. 

Edited by pir8radio
Link to comment
Share on other sites

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...