Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

http referer


hi,
i am using jwplayer 7 lastest version. i have a problem.
jwplayer don't send http_referer to my access.log when i watch on mobile devices.
my stream is protected with nginx secure link and i need user's http_referer for query.
i tried bitmovin player and it is ok. bitmovin player is sending user's http_referer all devices.
can you help me?
thank you..

5 Community Answers

Alex

JW Player Support Agent  
0 rated :

Hi, there.

Can you please supply a link to a reproduction page so we can take a look at your issue? Please also include the mobile devices, browsers and operating systems you are seeing this behavior with.

I just tried a test page on both Safari for iOS and Chrome for Android and I saw the referrer being sent in the request headers appropriately.

Thank you.

m...

User  
0 rated :

hi again,
thanks for your answer.

my settings;

<script type="text/javascript" src="jwplayer/jwplayer.js"></script>
<script type="text/javascript">jwplayer.key="112233445566778899aabbccddeeff";</script>
<div id="MediaPlayerOverview">Loading...</div>
<script type="text/javascript">
jwplayer('MediaPlayerOverview').setup({

sources: [{

file: "http://example.com/live/index.m3u8?token=l2rU_Ta3dG028CYmc_F9Vg&exp=1503417512"
}],

'autostart': 'false',
'width': '100%',
'aspectratio': '16:9',
fallback: false,
androidhls: true,
primary: "html5"

});


everythingsis ok when page first loading.

access.log loaded page ==> 66.249.93.89 - - [22/Aug/2017:15:58:34 +0300] "GET /live/index.m3u8?token=l2rU_Ta3dG028CYmc_F9Vg&exp=1503417512 HTTP/1.1" 200 "http://example.com/home.php" "Mozilla/5.0 (Linux; Android 5.0.2; SM-G530F Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.125 Mobile Safari/537.36"

jwplayer doesn't send $http_user_agent and $http_referer when i click play button.
access.log when i watch ==> 66.249.93.89 - - [22/Aug/2017:15:58:34 +0300] "GET /live/index.m3u8?token=l2rU_Ta3dG028CYmc_F9Vg&exp=1503417512 HTTP/1.1" 200 "-" "stagefright/1.2 (Linux;Android 5.0.2)"

66.249.93.89 - - [22/Aug/2017:15:58:34 +0300] "GET /live/index-26.ts?token=l2rU_Ta3dG028CYmc_F9Vg&exp=1503417512 HTTP/1.1" 200 "-" "stagefright/1.2 (Linux;Android 5.0.2)"


http_referer is blank.
http_user agent is "stagefright/1.2 (Linux;Android 5.0.2)"

what is problem ? i tried bitmovin and clappr player. everythink is ok.
this problem only on android devices. pc and ios are ok.

i tried on android 5.0.2 / Chrome/59.0.3071.125

please help me.
thank you..

Alex

JW Player Support Agent  
0 rated :

Can you send me a URL to page where your setup is live so I can test it?

Thank you.

m...

User  
0 rated :

hi alex,
android devices are using native hsl player and never send referer and user agent ....
i changed my settings

androidhls: false,
hlsjsdefault: true

and it is working perfect.
sending all headers to my server.
thank you very much for your interest..

I hope these settings are also useful for other users..

Heidi

JW Player Support Agent  
0 rated :

Alex is out so I am taking a look at your case. I see that you have found a solution, so I will go ahead and close this case.

This question has received the maximum number of answers.