boxeehacks / boxeehack

Hack that enables root access to the Boxee Box, provides a new updated Skin with some improved features, and a number of services to access the box such as telnet access
MIT License
365 stars 148 forks source link

Request: Media-Hint - variable proxy settings - netflix outside US #348

Open bwiklak opened 11 years ago

bwiklak commented 11 years ago

Hi, Media Hint (https://mediahint.com/) provides a chrome extension that basically chooses proxy or direct connection depending on url.

The extension code:

chrome.proxy.settings.set({
    value: {
        mode: "pac_script",
        pacScript: {
            url: "https://mediahint.com/default.pac"
        }
    }, scope: "regular"
});

The interesting part of pac script:

if((/songza\.com\/(api|advertising)\/|hulu\.com\/mozart\/.*|\.(ico|jpg|png|gif|mp3|js|css|mp4|flv|swf|json)(\?.*)?$|^crackle\.com\/flash\/$/).test(url)||(/^(contactus|presentationtracking|blog|nordicsblog)\.netflix\.com$|^(r|p|t2|ll\.a|t|t-l3|ads|assets|urlcheck)\.hulu\.com$|^(stats|blog|audio.*|const.*|mediaserver.*|cont.*)\.pandora\.com$/).test(host)){
    return 'DIRECT';
}
if((/(^([\w\.-]+\.)?(hulu|netflix|pandora|songza|www\.iheart|www\.crackle)\.com$)/).test(host)){
    return proxy;
}

The service works as a charm and it is free!

Is it possible to do something like that in boxee?

boxeehacks commented 11 years ago

Interesting :)

filipeazev commented 11 years ago

I think this is the most annoying issue for non US boxee owners.

xaxeu commented 11 years ago

Hi,

This is great, but I don't want to see US content on a web browser, but on my tv directly. Is it possible to have media hint enabled on a device working as a proxy and then route all traffic from other LAN devices (e.g. xbox, any media center with NETFLIX addon, boxee, smartv, etc) through it? Something like port forwarding on the device working as a proxy?

Thanks

ghost commented 11 years ago

Hi,

I'm interested by the idea from xaxeu. I'm trying to configure an alix board with pfsense and squid as an interception proxy... I could find the address of the proxies used by mediahint and I could configure squid to forward to those proxies. I'm able to browse netflix but if I launch a movie, I get a streaming error, I'll try to keep you informed if I can reach a new point.

Cheers

Samanthaadele commented 10 years ago

Thanks for the article. VPN is good if you want to hide your real location. However, about content streaming, I prefer the DNS option. Currently, I am using UnoTelly and have no speed loss which allows me HD streaming with my 10mbps connection.