lKinderBueno/Streamity-Xtream-IPTV-Web-player

Let's discuss User-Agent

Opened this issue · 0 comments

Hey great work on this! I had been wondering if someone would do this (and wishing the existing UIs for IPTV weren't so disorganized and slow).

I see you are setting user agent to appear as an iPad in both PHP and JS. What's the purpose of this? I believe my IPTV provider may be allowing certain user agents and not others.

$options = array(
        'http' => array(
            'timeout' => 20,
            'method' => "GET",
            'header' => "Accept-language: en\r\n" . "Cookie: foo=bar\r\n" . // check function.stream-context-create on php.net
            "User-Agent: Mozilla/5.0 (iPad; U; CPU OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B334b Safari/531.21.102011-10-16 20:23:10\r\n"
            // i.e. An iPad
            
        )
    );