Jump to content

Shared videos do not play.


BetaLeaf

Recommended Posts

BetaLeaf

So I have an issue. First, let me give you some background. I run a Freenas 11 server with Emby 3.2.27.0 installed. I have Emby running at https://192.168.0.10:5061/ that is behind a nginx reverse proxy to https://freenas.betaleaf.net/emby. Here is my reverse proxy setup

location /emby {
     proxy_pass https://192.168.0.10:5061/emby;
     proxy_redirect off;
     proxy_set_header Host $host;
     proxy_set_header X-Real-IP $remote_addr;
     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
     proxy_set_header Range $http_range;
     proxy_set_header If-Range $http_if_range;
     add_header X-Xss-Protection "1; mode=block" always;
     add_header X-Content-Type-Options "nosniff" always;
     add_header Strict-Transport-Security "max-age=2592000; includeSubdomains" always;
     add_header X-Frame-Options "SAMEORIGIN" always;
     proxy_hide_header X-Powered-By;
     add_header 'Referrer-Policy' 'no-referrer';
     add_header Content-Security-Policy "frame-ancestors freenas.betaleaf.net;";
     proxy_http_version 1.1;
     proxy_set_header Upgrade $http_upgrade;
     proxy_set_header Connection "upgrade";
     gzip_disable "msie6";
     gzip_comp_level 6;
     gzip_min_length 1100;
     gzip_buffers 16 8k;
     gzip_proxied any;
     gzip_types
     text/plain
     text/css
     text/js
     text/xml
     text/javascript
     application/javascript
     application/x-javascript
     application/json
     application/xml
     application/rss+xml
     image/svg+xml;
     tcp_nodelay on;
     }

Now allow me to explain the issue. I have a video I want to share to a friend of mine: 

https://freenas.betaleaf.net:5061/emby/web/shared.html?id=f687c55e6dac4211a2229c5a1f29599e

 

When he clicks on this link, it takes him to the item details page. (Screenshot: https://1drv.ms/i/s!Aol5iuIDVm2s5fEiRrHzQnV9vFkdJg)

Now, there is no play button on this page, which I find really confusing, but I told him to click on chapter 1 and it would start playing. He does and the circle spins in the middle of the screen indefinitely. In the logs, I see these lines:

2017-09-01 10:36:25.6560 Info HttpServer: HTTP GET https://freenas.betaleaf.net:5061/emby/Items/db86185bb1b7353e014767d187289d31. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36
2017-09-01 10:36:25.6560 Error HttpServer: Could not find handler for /emby/Items/db86185bb1b7353e014767d187289d31
2017-09-01 10:36:25.6590 Info HttpServer: HTTP Response 404 to 24.95.128.194. Time: 3ms. https://freenas.betaleaf.net:5061/emby/Items/db86185bb1b7353e014767d187289d31 

This error occurs rather or not if I connect internally or externally, both behind the reverse proxy and direct. I don't think the reverse proxy is the issue but I posted it to make sure I didn't miss anything.

Strangely, this only happens if the session is not authenticated.  If I go to https://freenas.betaleaf.net/emby and log in on my guest user, then go to the shared link and click on chapter 1, it loads fine. 

 

So a few questions I would like answered.

 

A> Why can I not watch a shared video without having to first sign in?

B> Why does it not ask me to log in first?

C> Why is there no play button?

 

Any help would be greatly appreciated. Thanks.

chrome console.log

server-63639858790.txt

Edited by BetaLeaf
Link to comment
Share on other sites

Hi, this is by design. we don't want to be a file sharing service. The shared info page is just an info page. What you would need to do is give him an account on your server so that he can login and play.

Link to comment
Share on other sites

pir8radio

Hi, this is by design. we don't want to be a file sharing service. The shared info page is just an info page. What you would need to do is give him an account on your server so that he can login and play.

 

Can you add a button to the shared.html page that allows someone to click that button and login to see the actual media page?    The share would be used all the time if this was available..  For example i could share a movie with my parents via facebook, and they could click it go to the share page (that does not let you play the media) and click something like "login to view" enter their credentials and land on the playable media page.    So they don't have to go searching for what you shared with them.

Link to comment
Share on other sites

  • 1 month later...
pir8radio

It is a good idea for a future update, yes.

 

Just checked to see if you guys had a chance to add this feature yet, and I'm seeing in 3.2.35 the shared media page doesn't load all the way, and has the spinning circle.

 

I'll remove this link later:  LINK REMOVED

Edited by pir8radio
Link to comment
Share on other sites

Probably a regression in the sharing feature. We'll test and resolve for the next update, thanks.

  • Like 1
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...