03-07-2013 05:12 PM
How can I get the Media Player's user-agent string?
I need it for when the app requests a video stream through a secure connection (which I'll most likely make another thread about...)
I thought it was the same one as the browser, but it seems it's a different one.
I entered www.thismachine.info through the Browser and through a sample app's webview and they are the same... Just wanted to be sure.
Thanks in advance
Solved! Go to Solution.
03-11-2013 05:42 PM
I made a simple php script, hosted and these are the results:
This was generated by my browser:
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:19.0) Gecko/20100101 Firefox/19.0
These were generated by WindowsMP:
BB10 Media Player:
So just "io-media"...
In case someone wants the script, it's a bunch of copy-pasted code:
<?php echo $_SERVER['HTTP_USER_AGENT']; $myFile = "testFile.txt"; $fh = fopen($myFile, 'a') or die("can't open file"); $stringData = "UA:\n"; fwrite($fh, $stringData); $stringData = $_SERVER['HTTP_USER_AGENT']."\n\n"; fwrite($fh, $stringData); fclose($fh); ?>