Change XBMC User Agent
#16
Is there anything I can do to get my streams working again on xbmc?
HTPC Server - Windows 8.1 + XBMC Helix | Intel QuadCore, 4GB RAM, 4 TB SATA
Intel NUC D54250WYK - Windows 8.1 + XBMC Helix | Logitech Harmony 750
Samsung UE8005 | Bluetooth keyboard & mousepad
Reply
#17
Anyone?
HTPC Server - Windows 8.1 + XBMC Helix | Intel QuadCore, 4GB RAM, 4 TB SATA
Intel NUC D54250WYK - Windows 8.1 + XBMC Helix | Logitech Harmony 750
Samsung UE8005 | Bluetooth keyboard & mousepad
Reply
#18
Well have you tried editing the code and compiling it ?
Reply
#19
Yeah, I'm trying to compile it Smile
http://forum.xbmc.org/showthread.php?tid=167871
HTPC Server - Windows 8.1 + XBMC Helix | Intel QuadCore, 4GB RAM, 4 TB SATA
Intel NUC D54250WYK - Windows 8.1 + XBMC Helix | Logitech Harmony 750
Samsung UE8005 | Bluetooth keyboard & mousepad
Reply
#20
(2013-06-26, 09:17)Maniac Wrote: Yeah, I'm trying to compile it Smile
http://forum.xbmc.org/showthread.php?tid=167871

are you able to change the User-Agent by recompiling the code?
Reply
#21
I am sorry for bringing up an old topic, but this is still a problem for me (and others). If one of the developers could look at this or at least point us in the right direction?
The streams that we use do work in VLC, on smart tv, on the iPad and ATV2 (without xbmc).

In vlc we need to add a line in the m3u file that overrides the http-user agent for vlc, to anything else, I can write Potato, and it will work flawless. If I write 'XBMC' in the user-agent field, it will not work. Wink

In XBMC none of the methods work. Have also added |User-agent= at the end of the url, no luck. Have also played with the source and altered some areas where user-agent is mentioned, and compiled my own version. still no luck.
So does anyone know what we can do here? It's kind of weird that this issue is only present in XBMC, and it realy buggs me.

Here is the log when I run a http stream from a PVR Client, with |User-agent= at the end. It looks like the streams starts, but then stops for no reason.
http://xbmclogs.com/show.php?id=103940

I can provide a stream to the devs who would like to test this. I can't post it here, it's from my personal account.

Thanks
HTPC Server - Windows 8.1 + XBMC Helix | Intel QuadCore, 4GB RAM, 4 TB SATA
Intel NUC D54250WYK - Windows 8.1 + XBMC Helix | Logitech Harmony 750
Samsung UE8005 | Bluetooth keyboard & mousepad
Reply
#22
Bump
HTPC Server - Windows 8.1 + XBMC Helix | Intel QuadCore, 4GB RAM, 4 TB SATA
Intel NUC D54250WYK - Windows 8.1 + XBMC Helix | Logitech Harmony 750
Samsung UE8005 | Bluetooth keyboard & mousepad
Reply
#23
Do you see any picture or hear any audio?
Reply
#24
A properly set up proxy server would change the user-agent for you.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
#25
any news on this topic?
Reply
#26
(2013-06-04, 16:44)Kib Wrote: Your urlencode is in RFC2396 mode:
Code:
Mozilla%2f5.0+(iPad%3b+CPU+OS+6_0+like+Mac+OS+X)+AppleWebKit%2f536.26+(KHTML%2c+like+Gecko)+Version%2f6.0+Mobile%2f10A5355d+Safari%2f8536.25

This urlencode is as described by RFC3986 which supersedes RFC2396
Code:
Mozilla%2F5.0%20(iPad%3B%20CPU%20OS%206_0%20like%20Mac%20OS%20X)%20AppleWebKit%2F536.26%20(KHTML%2C%20like%20Gecko)%20Version%2F6.0%20Mobile%2F10A5355d%20Safari%2F8536.25

It could be something stupid like that.
Can you upload a debug log (wiki) when opening a stream with this user agent appended ?

https://tools.ietf.org/html/draft-pantos...reaming-10

Quote:Playlist files whose names end in .m3u8 and/or have the HTTP Content-
Type "application/vnd.apple.mpegurl" are encoded in UTF-8 [RFC3629].
Files whose names end with .m3u and/or have the HTTP Content-Type
[RFC2616] "audio/mpegurl" are encoded in US-ASCII [US_ASCII].

Playlist files MUST have names that end in .m3u8 and/or have the
Content-Type "application/vnd.apple.mpegurl" (if transferred over
HTTP), or have names that end in .m3u and/or have the HTTP Content-
Type type "audio/mpegurl" (for compatibility).


livestreamer "hlsvariant://http:// /playlist.m3u8" best --http-header "Referer=http:// .swf" --http-header "Accept-Encoding=gzip, deflate" --http-header "User-Agent=Mozilla/5.0 (Windows NT 6.1; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0"

How do pass on the other headers?
something like
url |User-Agent= |Referer=
or
url |User-Agent= ,Referer=
Reply
#27
Remove word wrap format and leave no spaces, posted for easyier reading.

url|User-Agent=
&Accept=
&Accept-Language=
&Accept-Encoding=
&DNT=
&Referer=
&Connection=
best

I had to remove the hlsvariant:// part and just leave the url.
Livestreamer link playback is choppy skipping frames though,
I don't think it's setting the hls worst / best quality bitrate setting properly.
I can run multiple streams on windows using with just livestreamer without any dropped frames so it's not
my internet connection speed.
rtmp, rtsp, http m3u8 links that use .ts transport streams or .flv flash video playback work with no problem so
I think it's just hls with mutiple qualities.
Reply

Logout Mark Read Team Forum Stats Members Help
Change XBMC User Agent2