Page 1 of 1

Flowplayer logo MB

PostPosted: Thu Aug 29, 2013 4:24 pm
by spudy12
I've setup a apache reverse proxy to sit in front of my webserver and serviio. It forces SSL connections so I get urls such as https://mydomain.com/mediabrowser

This works fine, however when I play a movie, I have the massive flowplayer logo at the bottom of the screen
Image

Is there a work around for this?

Re: Flowplayer logo MB

PostPosted: Thu Aug 29, 2013 4:44 pm
by will
Not much help, but from the 1.3 Beta 2 thread viewtopic.php?f=8&t=10752

MediaBrowser now includes FlowPlayer without the watermark. For that to work I had to add some code that checks your current MB domain name/IP and generate a license key based on that (it all happens in the background). So I'd like to test this properly, especially people who are using some URL rewrites or reverse-proxy models for their MB deployment.


I don't remember anyone saying they had a problem with it , so maybe your setup is different. You could edit the JS to resolve to your domain.

Re: Flowplayer logo MB

PostPosted: Sat Aug 31, 2013 11:03 am
by spudy12
How can I edit the JS to resolve my domain?

I've tested and this happens both with forced SSL and no ssl but using the apache2 ProxyPass and ProxyPassReverse

Re: Flowplayer logo MB

PostPosted: Mon Sep 09, 2013 2:19 pm
by spudy12
Any help on this at all?

Re: Flowplayer logo MB

PostPosted: Mon Sep 09, 2013 7:14 pm
by zip
If you open Crome dev tools / Firebug, you should see a request to the server to

  Code:
/fp


What are the request headers the browser uses?

Serviio will try to match the HOST header of the request, generate a key for the subdomain and use the key with FP to hide the logo. The browser's URL bar has to math the header sent via the request, so if there is some rewrite going on (e.g. domain -> IP), it might not work.

Re: Flowplayer logo MB

PostPosted: Mon Sep 09, 2013 10:27 pm
by spudy12
I don't see any that start with /fp but there is one called fp?authToken=53401568b7d84fe7a4d3fdfb355438cd
/cds



This is the header information for the reverse proxied access (with flo player logo)

Request Header
Accept:*/*
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Connection:keep-alive
Cookie:HFS_SID=0.321643231669441; mod_rss_top=normal
Host:mydomain.com
Referer:http://mydomain.com/mediabrowser/
User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.66 Safari/537.36
X-Requested-With:XMLHttpRequest
Query String Parametersview sourceview URL encoded
authToken:7634e8f9c9db4c7cab3aa7490e7781fa
Response Headersview source
Cache-Control:no-cache
Connection:Keep-Alive
Content-Encoding:gzip
Content-Type:text/plain; charset=UTF-8
Date:Mon, 09 Sep 2013 22:18:22 GMT
Keep-Alive:timeout=5, max=100
Server:Linux, UPnP/1.0 DLNADOC/1.50, Serviio/1.3.1
Transfer-Encoding:chunked
Vary:Accept-Charset,Accept-Encoding,Accept-Language,Accept
Via:1.1 mydomain.com


Here is the header information for the non reverse proxy (no flow player logo)

Request Header
Accept:*/*
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Connection:keep-alive
Cookie:HFS_SID=0.321643231669441; mod_rss_top=normal
Host:mydomain.com:23424
Referer:http://mydomain.com:23424/mediabrowser/
User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.66 Safari/537.36
X-Requested-With:XMLHttpRequest
Query String Parametersview sourceview URL encoded
authToken:53401568b7d84fe7a4d3fdfb355438cd
Response Headersview source
Cache-Control:no-cache
Connection:close
Content-Encoding:gzip
Content-Type:text/plain; charset=UTF-8
Date:Mon, 09 Sep 2013 22:21:03 GMT
Server:Linux, UPnP/1.0 DLNADOC/1.50, Serviio/1.3.1
Transfer-Encoding:chunked
Vary:Accept-Charset, Accept-Encoding, Accept-Language, Accept

Re: Flowplayer logo MB

PostPosted: Wed Sep 11, 2013 8:19 pm
by zip
Can you get the data that gets sent from Apache to Serviio as a part of the proxy process?

You could do it by enabling INFO level of logging for restlet package in log4j.xml like

  Code:
   <category name="org.restlet">
      <priority value="INFO"/>
   </category>


ie change ERROR to INFO, and retart serviio. Then start MB, login and the /fp request should happen and there sholud be a log similar to (only for /fp instead):

  Code:
21:15:57,359 INFO  [LogService] 2013-09-11   21:15:57   127.0.0.1   -   -   23424   GET   /cds/browse/flv_player/0/BrowseDirectChildren/containers/0/0   authToken=b7e5e0ce32f44bcfbbfa8edb942824d0   200   -   0   834   http://localhost:23424   Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.66 Safari/537.36   http://localhost:23424/mediabrowser/

Re: Flowplayer logo MB

PostPosted: Tue Sep 17, 2013 9:41 pm
by spudy12
Hi Zip
Only just seen this, Will do this now and post back with results

Re: Flowplayer logo MB

PostPosted: Wed Sep 18, 2013 12:00 am
by spudy12
Here is the bit from the log that I could see related to /fp and would be useful. I can attach full log if necessary.

my-ip-address.myqnapcloud.com is the external address it is accessed from that goes through the reverse proxy

2013-09-18 00:44:01,972 DEBUG [LoginServerResource] Successful login, generating security token
2013-09-18 00:44:02,017 WARN [LogFilter] Couldn't find any helper support the HTTP_Serviio challenge scheme.
2013-09-18 00:44:02,017 INFO [LogService] 2013-09-18 00:44:02 127.0.0.1 - - 23424 POST /cds/login - 200 - 0 172 http://localhost:23424 Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.66 Safari/537.36 https://my-ip-address.myqnapcloud.com/mediabrowser/
2013-09-18 00:44:02,650 INFO [LogService] 2013-09-18 00:44:02 127.0.0.1 - - 23424 GET /mediabrowser/images/top_nav.jpg - 200 5246 0 5 http://localhost:23424 Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.66 Safari/537.36 https://my-ip-address.myqnapcloud.com/mediabrowser/
2013-09-18 00:44:02,653 INFO [LogService] 2013-09-18 00:44:02 127.0.0.1 - - 23424 GET /mediabrowser/images/breadcrumb_arrow.png - 200 169 0 4 http://localhost:23424 Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.66 Safari/537.36 https://my-ip-address.myqnapcloud.com/mediabrowser/
2013-09-18 00:44:02,655 INFO [LogService] 2013-09-18 00:44:02 127.0.0.1 - - 23424 GET /cds/fp authToken=ec9082dc4247470d817507e8530f37e1 200 - 0 11 http://localhost:23424 Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.66 Safari/537.36 https://my-ip-address.myqnapcloud.com/mediabrowser/
2013-09-18 00:44:02,659 INFO [LogService] 2013-09-18 00:44:02 127.0.0.1 - - 23424 GET /cds/browse/flv_player/0/BrowseDirectChildren/containers/0/0 authToken=ec9082dc4247470d817507e8530f37e1 200 - 0 10 http://localhost:23424 Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.66 Safari/537.36 https://my-ip-address.myqnapcloud.com/mediabrowser/
2013-09-18 00:44:02,789 DEBUG [FeedUpdaterThread] Checking for new and expired online resources

Re: Flowplayer logo MB

PostPosted: Fri Sep 20, 2013 3:36 pm
by spudy12
What is the helper_support and http_serviio scheme?
Is this causing the problem?

Re: Flowplayer logo MB

PostPosted: Fri Oct 25, 2013 10:26 pm
by drseussofporn
Replace your localhost entries with your domain (or dynamic DNS). I had this same problem and thanks to this thread it pointed me in the right direction.

(Apologies if this matter was already resolved)

Re: Flowplayer logo MB

PostPosted: Thu Jan 02, 2014 10:43 pm
by agentdr8
drseussofporn wrote:Replace your localhost entries with your domain (or dynamic DNS). I had this same problem and thanks to this thread it pointed me in the right direction.

(Apologies if this matter was already resolved)


That kind of defeats the purpose of reverse proxying if you send the request back out to your external IP.

I too am having this issue and don't see any requests to /fp in the log file.

Re: Flowplayer logo MB

PostPosted: Sun Feb 09, 2014 8:31 am
by drseussofporn
agentdr8 wrote:
drseussofporn wrote:Replace your localhost entries with your domain (or dynamic DNS). I had this same problem and thanks to this thread it pointed me in the right direction.

(Apologies if this matter was already resolved)


That kind of defeats the purpose of reverse proxying if you send the request back out to your external IP.

I too am having this issue and don't see any requests to /fp in the log file.


. . . I don't quite follow. I was using the reverse proxy to force SSL connections to my server. Making this change allowed me to force SSL internal and external with no logo appearing.